2006-08-14 19:03:49 +04:00
|
|
|
|
2007-03-15 01:22:36 +03:00
|
|
|
// $Id$
|
|
|
|
|
2006-08-14 19:03:49 +04:00
|
|
|
#if !defined(CMD_H)
|
|
|
|
|
|
|
|
#define CMD_H
|
|
|
|
|
|
|
|
#define CMDDOUBLETYPE 1
|
|
|
|
#define CMDENUMTYPE 2
|
|
|
|
#define CMDINTTYPE 3
|
|
|
|
#define CMDSTRINGTYPE 4
|
|
|
|
#define CMDSUBRANGETYPE 5
|
|
|
|
#define CMDGTETYPE 6
|
|
|
|
#define CMDLTETYPE 7
|
|
|
|
#define CMDSTRARRAYTYPE 8
|
|
|
|
#define CMDBOOLTYPE 9
|
|
|
|
|
|
|
|
typedef struct {
|
2012-05-04 14:09:12 +04:00
|
|
|
const char *Name;
|
2011-02-24 16:57:11 +03:00
|
|
|
int Idx;
|
2006-08-14 19:03:49 +04:00
|
|
|
} Enum_T;
|
|
|
|
|
|
|
|
typedef struct {
|
2011-02-24 16:57:11 +03:00
|
|
|
int Type;
|
|
|
|
char *Name,
|
|
|
|
*ArgStr;
|
|
|
|
void *Val,
|
|
|
|
*p;
|
2006-08-14 19:03:49 +04:00
|
|
|
} Cmd_T;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__STDC__)
|
2013-07-08 23:52:14 +04:00
|
|
|
int DeclareParams(char *, ...);
|
2006-08-14 19:03:49 +04:00
|
|
|
#else
|
2013-07-08 23:52:14 +04:00
|
|
|
int DeclareParams();
|
2006-08-14 19:03:49 +04:00
|
|
|
#endif
|
|
|
|
|
2013-07-08 23:52:14 +04:00
|
|
|
int GetParams(int *n, char ***a,char *CmdFileName),
|
|
|
|
SPrintParams(),
|
|
|
|
PrintParams();
|
2006-08-14 19:03:49 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|