00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined(CMD_H)
00024
00025 #define CMD_H
00026
00027 #define CMDDOUBLETYPE 1
00028 #define CMDENUMTYPE 2
00029 #define CMDINTTYPE 3
00030 #define CMDSTRINGTYPE 4
00031 #define CMDSUBRANGETYPE 5
00032 #define CMDGTETYPE 6
00033 #define CMDLTETYPE 7
00034 #define CMDSTRARRAYTYPE 8
00035 #define CMDBOOLTYPE 9
00036
00037 typedef struct {
00038 const char *Name;
00039 int Idx;
00040 } Enum_T;
00041
00042 typedef struct {
00043 int Type;
00044 const char *Name,
00045 *ArgStr;
00046 void *Val,
00047 *p;
00048 } Cmd_T;
00049
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053
00054 #if defined(__STDC__)
00055 int DeclareParams(const char *, ...);
00056 #else
00057 int DeclareParams();
00058 #endif
00059
00060 int GetParams(int *n, char ***a,char *CmdFileName),
00061 SPrintParams(),
00062 PrintParams();
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067 #endif
00068
00069
00070