gwenhywfar  5.10.1
Macros | Functions
src/base/args.c File Reference
#include "args_p.h"
#include "gui_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
#include <string.h>
Include dependency graph for src/base/args.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

int GWEN_Args__AppendTXT (GWEN_BUFFER *ubuf, const char *s, unsigned int ins)
 
int GWEN_Args_Check (int argc, char **argv, int startAt, uint32_t mode, const GWEN_ARGS *args, GWEN_DB_NODE *db)
 
int GWEN_Args_ShortUsage (GWEN_UNUSED const GWEN_ARGS *args, GWEN_UNUSED GWEN_BUFFER *ubuf, GWEN_UNUSED GWEN_ARGS_OUTTYPE ot)
 
int GWEN_Args_Usage (const GWEN_ARGS *args, GWEN_BUFFER *ubuf, GWEN_ARGS_OUTTYPE ot)
 
int GWEN_Args_UsageHTML (GWEN_UNUSED const GWEN_ARGS *args, GWEN_UNUSED GWEN_BUFFER *ubuf)
 
int GWEN_Args_UsageTXT (const GWEN_ARGS *args, GWEN_BUFFER *ubuf)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 40 of file src/base/args.c.

Function Documentation

◆ GWEN_Args__AppendTXT()

int GWEN_Args__AppendTXT ( GWEN_BUFFER ubuf,
const char *  s,
unsigned int  ins 
)

Definition at line 346 of file src/base/args.c.

References GWEN_Buffer_AppendByte().

Referenced by GWEN_Args_UsageTXT().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Args_Check()

int GWEN_Args_Check ( int  argc,
char **  argv,
int  startAt,
uint32_t  mode,
const GWEN_ARGS args,
GWEN_DB_NODE db 
)

◆ GWEN_Args_ShortUsage()

int GWEN_Args_ShortUsage ( GWEN_UNUSED const GWEN_ARGS args,
GWEN_UNUSED GWEN_BUFFER ubuf,
GWEN_UNUSED GWEN_ARGS_OUTTYPE  ot 
)

Definition at line 463 of file src/base/args.c.

◆ GWEN_Args_Usage()

int GWEN_Args_Usage ( const GWEN_ARGS args,
GWEN_BUFFER ubuf,
GWEN_ARGS_OUTTYPE  ot 
)

Print a "usage" message into the given GWEN_BUFFER ubuf. The message lists all available options. The GWEN_ARGS_OUTTYPE argument is supposed to offer either text or html as output format, but currently only text is implemented.

Definition at line 441 of file src/base/args.c.

References DBG_ERROR, GWEN_Args_UsageHTML(), GWEN_Args_UsageTXT(), GWEN_ArgsOutType_Html, GWEN_ArgsOutType_Txt, and GWEN_LOGDOMAIN.

Referenced by _readCommandLine(), activateKey(), add2Archive(), changePin(), checkArchive(), checkTree(), createArchive(), createToken(), cryptWithNew(), extractArchive(), genKey(), hashTree(), listArchive(), main(), mkArchiveKey(), releaseFillIn(), setKey(), setSignSeq(), showKey(), showPasswords(), showUser(), signArchive(), signWithNew(), updateToken(), and verifyArchive().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Args_UsageHTML()

int GWEN_Args_UsageHTML ( GWEN_UNUSED const GWEN_ARGS args,
GWEN_UNUSED GWEN_BUFFER ubuf 
)

Definition at line 433 of file src/base/args.c.

Referenced by GWEN_Args_Usage().

Here is the caller graph for this function:

◆ GWEN_Args_UsageTXT()

int GWEN_Args_UsageTXT ( const GWEN_ARGS args,
GWEN_BUFFER ubuf 
)