Add SICS_Site, SICS_Version and SICS_Revision

r3735 | dcl | 2012-09-17 17:09:48 +1000 (Mon, 17 Sep 2012) | 1 line
This commit is contained in:
Douglas Clowes
2012-09-17 17:09:48 +10:00
parent 6b482b29ec
commit 68edac83fc
2 changed files with 25 additions and 3 deletions

View File

@@ -69,6 +69,22 @@ extern void AddTCPMBProtocol ();
extern void AddLFGenProtocol();
extern int ANSTO_MakeHistMemory(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[]);
int SICS_Site(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[])
{
char line[132];
snprintf(line, 132, "SICS_Site = ANSTO");
SCWrite(pCon, line, eValue);
return OKOK;
};
int SICS_Version(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[])
{
char line[132];
snprintf(line, 132, "SICS_Version = BRANCH-2.5");
SCWrite(pCon, line, eValue);
return OKOK;
};
int SICS_Revision(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[])
{
char line[132];
@@ -125,6 +141,8 @@ static void AddCommands(SicsInterp *pInter)
AddCommand(pInter,"MakeLSSMonitor",LSSFactory,NULL,NULL);
AddCommand(pInter,"MakeActionObject",ActionObjectFactory,NULL,NULL);
AddCommand(pInter,"ANSTO_MakeHM",ANSTO_MakeHistMemory,NULL,NULL);
AddCommand(pInter,"SICS_Site",SICS_Site,NULL,NULL);
AddCommand(pInter,"SICS_Version",SICS_Version,NULL,NULL);
AddCommand(pInter,"SICS_Revision",SICS_Revision,NULL,NULL);
}
/*---------------------------------------------------------------------*/