Classes | Defines | 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_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

Defines

#define ENABLE_CURLX_PRINTF
#define GetStr(str, val)

Functions

static void GetFileAndPassword (char *nextarg, char **file, char **password)
ParameterError getparameter (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 struct LongShort aliases []

Define Documentation

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; \
  } \
} WHILE_FALSE

Definition at line 48 of file tool_getparam.c.


Function Documentation

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

Definition at line 405 of file tool_getparam.c.

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

Definition at line 418 of file tool_getparam.c.

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

Definition at line 2004 of file tool_getparam.c.

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

Definition at line 309 of file tool_getparam.c.


Variable Documentation

struct LongShort aliases[] [static]

Definition at line 66 of file tool_getparam.c.



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