Defines | Functions | Variables
tool_setopt.c File Reference
#include "tool_setup.h"
#include "curlx.h"
#include "tool_cfgable.h"
#include "tool_easysrc.h"
#include "tool_setopt.h"
#include "memdebug.h"
Include dependency graph for tool_setopt.c:

Go to the source code of this file.

Defines

#define ADD(args)
#define ADDF(args)
#define CLEAN0(s)   ADD((&easysrc_clean, s))
#define CLEAN1(f, a)   ADDF((&easysrc_clean, f,a))
#define CODE0(s)   ADD((&easysrc_code, s))
#define CODE1(f, a)   ADDF((&easysrc_code, f,a))
#define CODE2(f, a, b)   ADDF((&easysrc_code, f,a,b))
#define CODE3(f, a, b, c)   ADDF((&easysrc_code, f,a,b,c))
#define DATA0(s)   ADD((&easysrc_data, s))
#define DATA1(f, a)   ADDF((&easysrc_data, f,a))
#define DATA2(f, a, b)   ADDF((&easysrc_data, f,a,b))
#define DATA3(f, a, b, c)   ADDF((&easysrc_data, f,a,b,c))
#define DECL0(s)   ADD((&easysrc_decl, s))
#define DECL1(f, a)   ADDF((&easysrc_decl, f,a))
#define ENABLE_CURLX_PRINTF
#define NV(e)   {#e, e}
#define NV1(e, v)   {#e, (v)}
#define NVEND   {NULL, 0} /* sentinel to mark end of list */
#define REM0(s)   ADD((&easysrc_toohard, s))
#define REM1(f, a)   ADDF((&easysrc_toohard, f,a))
#define REM2(f, a, b)   ADDF((&easysrc_toohard, f,a,b))

Functions

static char * c_escape (const char *str)
CURLcode tool_setopt (CURL *curl, bool str, struct GlobalConfig *config, const char *name, CURLoption tag,...)
CURLcode tool_setopt_bitmask (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, const NameValueUnsigned *nvlist, long lval)
CURLcode tool_setopt_enum (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, const NameValue *nvlist, long lval)
CURLcode tool_setopt_flags (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, const NameValue *nvlist, long lval)
CURLcode tool_setopt_httppost (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, struct curl_httppost *post)
CURLcode tool_setopt_slist (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, struct curl_slist *list)

Variables

const NameValue setopt_nv_CURL_HTTP_VERSION []
const NameValue setopt_nv_CURL_NETRC []
const NameValue setopt_nv_CURL_SOCKS_PROXY []
const NameValue setopt_nv_CURL_SSLVERSION []
const NameValue setopt_nv_CURL_TIMECOND []
const NameValueUnsigned setopt_nv_CURLAUTH []
const NameValue setopt_nv_CURLFTPSSL_CCC []
static const NameValue setopt_nv_CURLNONZERODEFAULTS []
const NameValue setopt_nv_CURLPROTO []
const NameValue setopt_nv_CURLPROXY []
const NameValueUnsigned setopt_nv_CURLSSLOPT []
const NameValue setopt_nv_CURLUSESSL []

Define Documentation

#define ADD (   args)
Value:
do { \
  ret = easysrc_add args; \
  if(ret) \
    goto nomem; \
} WHILE_FALSE

Definition at line 177 of file tool_setopt.c.

#define ADDF (   args)
Value:
do { \
  ret = easysrc_addf args; \
  if(ret) \
    goto nomem; \
} WHILE_FALSE

Definition at line 182 of file tool_setopt.c.

#define CLEAN0 (   s)    ADD((&easysrc_clean, s))

Definition at line 201 of file tool_setopt.c.

#define CLEAN1 (   f,
 
)    ADDF((&easysrc_clean, f,a))

Definition at line 202 of file tool_setopt.c.

#define CODE0 (   s)    ADD((&easysrc_code, s))

Definition at line 196 of file tool_setopt.c.

#define CODE1 (   f,
 
)    ADDF((&easysrc_code, f,a))

Definition at line 197 of file tool_setopt.c.

#define CODE2 (   f,
  a,
 
)    ADDF((&easysrc_code, f,a,b))

Definition at line 198 of file tool_setopt.c.

#define CODE3 (   f,
  a,
  b,
 
)    ADDF((&easysrc_code, f,a,b,c))

Definition at line 199 of file tool_setopt.c.

#define DATA0 (   s)    ADD((&easysrc_data, s))

Definition at line 191 of file tool_setopt.c.

#define DATA1 (   f,
 
)    ADDF((&easysrc_data, f,a))

Definition at line 192 of file tool_setopt.c.

#define DATA2 (   f,
  a,
 
)    ADDF((&easysrc_data, f,a,b))

Definition at line 193 of file tool_setopt.c.

#define DATA3 (   f,
  a,
  b,
 
)    ADDF((&easysrc_data, f,a,b,c))

Definition at line 194 of file tool_setopt.c.

#define DECL0 (   s)    ADD((&easysrc_decl, s))

Definition at line 188 of file tool_setopt.c.

#define DECL1 (   f,
 
)    ADDF((&easysrc_decl, f,a))

Definition at line 189 of file tool_setopt.c.

Definition at line 26 of file tool_setopt.c.

#define NV (   e)    {#e, e}

Definition at line 41 of file tool_setopt.c.

#define NV1 (   e,
 
)    {#e, (v)}

Definition at line 42 of file tool_setopt.c.

#define NVEND   {NULL, 0} /* sentinel to mark end of list */

Definition at line 43 of file tool_setopt.c.

#define REM0 (   s)    ADD((&easysrc_toohard, s))

Definition at line 204 of file tool_setopt.c.

#define REM1 (   f,
 
)    ADDF((&easysrc_toohard, f,a))

Definition at line 205 of file tool_setopt.c.

#define REM2 (   f,
  a,
 
)    ADDF((&easysrc_toohard, f,a,b))

Definition at line 206 of file tool_setopt.c.


Function Documentation

static char* c_escape ( const char *  str) [static]

Definition at line 210 of file tool_setopt.c.

CURLcode tool_setopt ( CURL curl,
bool  str,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
  ... 
)

Definition at line 490 of file tool_setopt.c.

CURLcode tool_setopt_bitmask ( CURL curl,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
const NameValueUnsigned nvlist,
long  lval 
)

Definition at line 331 of file tool_setopt.c.

CURLcode tool_setopt_enum ( CURL curl,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
const NameValue nvlist,
long  lval 
)

Definition at line 256 of file tool_setopt.c.

CURLcode tool_setopt_flags ( CURL curl,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
const NameValue nvlist,
long  lval 
)

Definition at line 289 of file tool_setopt.c.

CURLcode tool_setopt_httppost ( CURL curl,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
struct curl_httppost post 
)

Definition at line 374 of file tool_setopt.c.

CURLcode tool_setopt_slist ( CURL curl,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
struct curl_slist list 
)

Definition at line 450 of file tool_setopt.c.


Variable Documentation

Initial value:

Definition at line 128 of file tool_setopt.c.

Initial value:

Definition at line 56 of file tool_setopt.c.

Initial value:

Definition at line 107 of file tool_setopt.c.

Initial value:
 {
  NV1(CURLOPT_SSL_VERIFYPEER, 1),
  NV1(CURLOPT_SSL_VERIFYHOST, 1),
  NV1(CURLOPT_SSL_ENABLE_NPN, 1),
  NV1(CURLOPT_SSL_ENABLE_ALPN, 1),
  NV1(CURLOPT_TCP_NODELAY, 1),
  NV1(CURLOPT_PROXY_SSL_VERIFYPEER, 1),
  NV1(CURLOPT_PROXY_SSL_VERIFYHOST, 1),
  NVEND
}

Definition at line 165 of file tool_setopt.c.

Initial value:

Definition at line 122 of file tool_setopt.c.

Initial value:

Definition at line 114 of file tool_setopt.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09