On Mon, 15 Dec 2014, Jeroen Ooms wrote:
The goal is to create a list of all available options (name and integer)
during compile-time, so that the user in the scripting language can name an
arbitrary option as a string (say ACCEPT_ENCODING) at run-time.
I assume you'll be fine with only
Jeroen Ooms wrote:
#define MAKE_OPTION(a) {#a, CURLOPT_##a}
typedef struct {
char name[40];
int val;
} keyval;
keyval curl_options[] = {
MAKE_OPTION(MUTE),
MAKE_OPTION(ACCEPT_ENCODING),
... etc
};
But currently this fails when calling MAKE_OPTION with an undefined symbol.
Is
On Mon, Dec 15, 2014 at 3:34 AM, Gisle Vanem gva...@yahoo.no wrote:
Jeroen Ooms wrote:
#define MAKE_OPTION(a) {#a, CURLOPT_##a}
typedef struct {
char name[40];
int val;
} keyval;
keyval curl_options[] = {
MAKE_OPTION(MUTE),
MAKE_OPTION(ACCEPT_ENCODING),
... etc
};
On Mon, Dec 15, 2014 at 12:27:24PM -0800, Jeroen Ooms wrote:
On Mon, Dec 15, 2014 at 3:34 AM, Gisle Vanem gva...@yahoo.no wrote:
Jeroen Ooms wrote:
#define MAKE_OPTION(a) {#a, CURLOPT_##a}
typedef struct {
char name[40];
int val;
} keyval;
keyval curl_options[] = {
On Mon, Dec 15, 2014 at 12:50 PM, Dan Fandrich d...@coneharvesters.com wrote:
If the goal is to simply #ifdef code depending on which options are available,
No that is not the goal. In that case the LIBCURL_HAS macro would
suffice, no need for autoconf.
The goal is to create a list of all
On Sat, Dec 13, 2014 at 2:32 PM, Daniel Stenberg dan...@haxx.se wrote:
In addition to that, we provide docs/libcurl/symbols.pl, with which you
can generate a header file...
Thank you, that gets me almost here. My goal is to create a list of all
options and their symbol names whe compiling the
On Thu, Dec 11, 2014 at 12:06 AM, Dan Fandrich d...@coneharvesters.com wrote:
The curl_easy_setopt call will return CURLE_UNKNOWN_OPTION or
CURLE_NOT_BUILT_IN if the option is not supported. That's the most reliable
way
of telling. It's unusual that a program would need to know if an option
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
On Wed, Dec 10, 2014 at 10:52:46PM -0800, Jeroen Ooms wrote:
I'm writing some bindings to libcurl for a scripting language. I was
wondering if there is an API call or some other method to list the
options (CURLOPT_* values and their integer) that the linked version
of libcurl supports?
That
I'm writing some bindings to libcurl for a scripting language. I was
wondering if there is an API call or some other method to list the
options (CURLOPT_* values and their integer) that the linked version
of libcurl supports?
That would make it easier to test in the client if a particular option
I maintain analogous MYCURLOPT_OPTION making those options as index to char
*optname[] {}; array of strings representing supported options.
What are you trying to bind to?
On Dec 10, 2014 10:57 PM, Jeroen Ooms jeroeno...@gmail.com wrote:
I'm writing some bindings to libcurl for a scripting
On Thu, Dec 11, 2014 at 12:52 AM, Jeroen Ooms wrote:
I'm writing some bindings to libcurl for a scripting language. I was
wondering if there is an API call or some other method to list the
options (CURLOPT_* values and their integer) that the linked version
of libcurl supports?
That would
12 matches
Mail list logo