MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
macsio_clargs.h File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  _MACSIO_CLARGS_ArgvFlags_t
 

Macros

#define MACSIO_CLARGS_WARN   0
 
#define MACSIO_CLARGS_ERROR   1
 
#define MACSIO_CLARGS_TOMEM   0
 
#define MACSIO_CLARGS_TOJSON   1
 
#define MACSIO_CLARGS_ASSIGN_OFF   0
 
#define MACSIO_CLARGS_ASSIGN_ON   0
 
#define MACSIO_CLARGS_HELP   -1
 
#define MACSIO_CLARGS_OK   0
 
#define MACSIO_CLARGS_GRP_SEP_STR   "macsio_args_group_"
 
#define MACSIO_CLARGS_GRP_BEG   MACSIO_CLARGS_GRP_SEP_STR "beg_"
 
#define MACSIO_CLARGS_GRP_END   MACSIO_CLARGS_GRP_SEP_STR "end_"
 
#define MACSIO_CLARGS_ARG_GROUP_BEG(GRPNAME)   MACSIO_CLARGS_GRP_BEG #GRPNAME, MACSIO_CLARGS_NODEFAULT
 
#define MACSIO_CLARGS_ARG_GROUP_END(GRPNAME)   MACSIO_CLARGS_GRP_END #GRPNAME, MACSIO_CLARGS_NODEFAULT, ""
 
#define MACSIO_CLARGS_END_OF_ARGS   "macsio_end_of_args"
 
#define MACSIO_CLARGS_NODEFAULT   (void*)0
 

Typedefs

typedef struct
_MACSIO_CLARGS_ArgvFlags_t 
MACSIO_CLARGS_ArgvFlags_t
 

Functions

int MACSIO_CLARGS_ProcessCmdline (void **retobj, MACSIO_CLARGS_ArgvFlags_t flags, int argi, int argc, char **argv,...)
 

Data Structure Documentation

struct _MACSIO_CLARGS_ArgvFlags_t

Definition at line 60 of file macsio_clargs.h.

Data Fields
unsigned int error_mode: 1
unsigned int route_mode: 2
unsigned int defaults_mode: 1

Macro Definition Documentation

#define MACSIO_CLARGS_WARN   0

Definition at line 35 of file macsio_clargs.h.

#define MACSIO_CLARGS_ERROR   1

Definition at line 36 of file macsio_clargs.h.

#define MACSIO_CLARGS_TOMEM   0

Definition at line 39 of file macsio_clargs.h.

#define MACSIO_CLARGS_TOJSON   1

Definition at line 40 of file macsio_clargs.h.

#define MACSIO_CLARGS_ASSIGN_OFF   0

Definition at line 43 of file macsio_clargs.h.

#define MACSIO_CLARGS_ASSIGN_ON   0

Definition at line 44 of file macsio_clargs.h.

#define MACSIO_CLARGS_HELP   -1

Definition at line 46 of file macsio_clargs.h.

#define MACSIO_CLARGS_OK   0

Definition at line 47 of file macsio_clargs.h.

#define MACSIO_CLARGS_GRP_SEP_STR   "macsio_args_group_"

Definition at line 48 of file macsio_clargs.h.

#define MACSIO_CLARGS_GRP_BEG   MACSIO_CLARGS_GRP_SEP_STR "beg_"

Definition at line 49 of file macsio_clargs.h.

#define MACSIO_CLARGS_GRP_END   MACSIO_CLARGS_GRP_SEP_STR "end_"

Definition at line 50 of file macsio_clargs.h.

#define MACSIO_CLARGS_ARG_GROUP_BEG (   GRPNAME)    MACSIO_CLARGS_GRP_BEG #GRPNAME, MACSIO_CLARGS_NODEFAULT

Definition at line 51 of file macsio_clargs.h.

#define MACSIO_CLARGS_ARG_GROUP_END (   GRPNAME)    MACSIO_CLARGS_GRP_END #GRPNAME, MACSIO_CLARGS_NODEFAULT, ""

Definition at line 52 of file macsio_clargs.h.

#define MACSIO_CLARGS_END_OF_ARGS   "macsio_end_of_args"

Definition at line 53 of file macsio_clargs.h.

#define MACSIO_CLARGS_NODEFAULT   (void*)0

Definition at line 54 of file macsio_clargs.h.

Typedef Documentation

Function Documentation

int MACSIO_CLARGS_ProcessCmdline ( void **  retobj,
MACSIO_CLARGS_ArgvFlags_t  flags,
int  argi,
int  argc,
char **  argv,
  ... 
)

Definition at line 166 of file macsio_clargs.c.