00001
00021 #ifndef __CMD_H__
00022 #define __CMD_H__
00023
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027
00031
00035
00039
00040 typedef struct MvCommand Abc_Command;
00041 typedef struct MvAlias Abc_Alias;
00042
00046
00050
00051
00052 extern void Cmd_Init();
00053 extern void Cmd_End();
00054
00055 extern void Cmd_CommandAdd( Abc_Frame_t * pAbc, char * sGroup, char * sName, void * pFunc, int fChanges );
00056 extern int Cmd_CommandExecute( Abc_Frame_t * pAbc, char * sCommand );
00057
00058 extern char * Cmd_FlagReadByName( Abc_Frame_t * pAbc, char * flag );
00059 extern void Cmd_FlagDeleteByName( Abc_Frame_t * pAbc, char * key );
00060 extern void Cmd_FlagUpdateValue( Abc_Frame_t * pAbc, char * key, char * value );
00061
00062 extern void Cmd_HistoryAddCommand( Abc_Frame_t * pAbc, char * command );
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067
00068 #endif
00069
00073