gwenhywfar  4.99.8beta
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

#define DISABLE_DEBUGLOG

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

Function Documentation

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

Definition at line 344 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:

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 
)

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

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 435 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 activateKey(), add2Archive(), changePin(), checkArchive(), checkTree(), createArchive(), createToken(), cryptWithNew(), cryptWithNew2(), cryptWithOld(), extractArchive(), genKey(), hashTree(), listArchive(), main(), mkArchiveKey(), releaseFillIn(), setKey(), setSignSeq(), showKey(), showPasswords(), showUser(), signArchive(), signWithNew(), signWithOld(), updateToken(), and verifyArchive().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Referenced by GWEN_Args_Usage().

Here is the caller graph for this function:

int GWEN_Args_UsageTXT ( const GWEN_ARGS args,
GWEN_BUFFER ubuf 
)