Classes | Macros | Functions | Variables
tool_getparam.c File Reference
#include "tool_setup.h"
#include "strcase.h"
#include "curlx.h"
#include "tool_binmode.h"
#include "tool_cfgable.h"
#include "tool_cb_prg.h"
#include "tool_convert.h"
#include "tool_formparse.h"
#include "tool_getparam.h"
#include "tool_helpers.h"
#include "tool_libinfo.h"
#include "tool_metalink.h"
#include "tool_msgs.h"
#include "tool_paramhlp.h"
#include "tool_parsecfg.h"
#include "memdebug.h"
Include dependency graph for tool_getparam.c:

Go to the source code of this file.

Classes

struct  LongShort
 

Macros

#define ENABLE_CURLX_PRINTF
 
#define GetStr(str, val)
 

Functions

static void GetFileAndPassword (char *nextarg, char **file, char **password)
 
ParameterError getparameter (const char *flag, char *nextarg, bool *usedarg, struct GlobalConfig *global, struct OperationConfig *config)
 
ParameterError parse_args (struct GlobalConfig *config, int argc, argv_item_t argv[])
 
static void parse_cert_parameter (const char *cert_parameter, char **certname, char **passphrase)
 

Variables

static const struct LongShort aliases []
 

Macro Definition Documentation

#define ENABLE_CURLX_PRINTF

Definition at line 26 of file tool_getparam.c.

#define GetStr (   str,
  val 
)
Value:
do { \
if(*(str)) { \
free(*(str)); \
*(str) = NULL; \
} \
if((val)) { \
*(str) = strdup((val)); \
if(!(*(str))) \
return PARAM_NO_MEM; \
} \
#define free(ptr)
Definition: curl_memory.h:130
#define strdup(ptr)
Definition: curl_memory.h:122
if(strcmp(arg,"1305")!=0)
Definition: unit1305.c:127
#define WHILE_FALSE
const char * str
Definition: unit1398.c:33

Definition at line 49 of file tool_getparam.c.

Function Documentation

static void GetFileAndPassword ( char *  nextarg,
char **  file,
char **  password 
)
static

Definition at line 414 of file tool_getparam.c.

ParameterError getparameter ( const char *  flag,
char *  nextarg,
bool usedarg,
struct GlobalConfig global,
struct OperationConfig config 
)

Definition at line 427 of file tool_getparam.c.

ParameterError parse_args ( struct GlobalConfig config,
int  argc,
argv_item_t  argv[] 
)

Definition at line 2084 of file tool_getparam.c.

static void parse_cert_parameter ( const char *  cert_parameter,
char **  certname,
char **  passphrase 
)
static

Definition at line 318 of file tool_getparam.c.

Variable Documentation

const struct LongShort aliases[]
static

Definition at line 71 of file tool_getparam.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17