00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TAC_SERVER_H
00013 #define TAC_SERVER_H
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "ccs.h"
00024 #include "tacTypes.h"
00025
00026
00027
00028
00029
00030 typedef enum {
00031 tacDATA_MONITOR_CALLBACK = 0,
00032 tacDATA_PROBE_CALLBACK,
00033 }tacDATA_CALLBACK_TYPE;
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 ccsCOMPL_STAT tacServerConfigRTC(ccsERROR *error);
00048 ccsCOMPL_STAT tacServerConfig(char *fileName, ccsERROR *error);
00049 ccsCOMPL_STAT tacServerReport(char *fileName, ccsERROR *error);
00050 ccsCOMPL_STAT tacServerResetAlgorithm(ccsERROR *error);
00051 ccsCOMPL_STAT tacServerStopAlgorithm(ccsERROR *error);
00052 ccsCOMPL_STAT tacServerRecord(char *fileName, char *blockName, vltUINT32 sample, ccsERROR *error);
00053 ccsCOMPL_STAT tacServerStopRecord(ccsERROR *error);
00054 ccsCOMPL_STAT tacServerAddBlock(char *type, char *name, tacPARAM *parameter, ccsERROR *error);
00055 ccsCOMPL_STAT tacServerDeleteBlock(char *name, ccsERROR *error);
00056
00057 #if 0
00058 ccsCOMPL_STAT tacServerModifyBlock(char *name, tacPARAM *parameter, ccsERROR *error);
00059 #else
00060 ccsCOMPL_STAT tacServerModifyBlock(char *name, tacPARAM *parameter, vltINT32 reply, ccsERROR *error);
00061 #endif
00062
00063 ccsCOMPL_STAT tacServerAddLink(char *name,
00064 char *srcName, vltUINT32 srcPort,
00065 char *dstName, vltUINT32 dstPort,
00066 ccsERROR *error);
00067 ccsCOMPL_STAT tacServerDeleteLink(char *name, ccsERROR *error);
00068 ccsCOMPL_STAT tacServerClearAlgorithm(ccsERROR *error);
00069
00070 ccsCOMPL_STAT tacServerGetCurrentTime(ccsTIMEVAL *time, ccsERROR *error);
00071 ccsCOMPL_STAT tacServerReadMonitorValue(char* name, vltDOUBLE* data, vltINT32 dataId, ccsERROR* error);
00072 vltINT32 tacServerGetSubState(void);
00073
00074 ccsCOMPL_STAT tacServerInstallDataCallback(vltUINT32 callbackType,
00075 char* name,
00076 void (* theCallback)(),
00077 void* usrParam,
00078 ccsERROR *error);
00079 ccsCOMPL_STAT tacServerRemoveDataCallback(vltUINT32 callbackType, char* name, ccsERROR *error);
00080
00081 ccsCOMPL_STAT tacServerSimulate(ccsERROR *error);
00082 ccsCOMPL_STAT tacServerStopSim(ccsERROR *error);
00083 #endif