MJL 11/10/06 Added HTTP Histogram Server support
r1133 | mle | 2006-10-11 14:13:00 +1000 (Wed, 11 Oct 2006) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
98e5ce4673
commit
9dc158bc72
@@ -24,6 +24,8 @@
|
||||
/* Added code for new LH45 and Lakeshore 340 drivers */
|
||||
#include "lh45.h"
|
||||
#include "lakeshore340.h"
|
||||
/* Added HTTP support for Histogra Server */
|
||||
#include "anstohttp.h"
|
||||
|
||||
/*@observer@*//*@null@*/ pCounterDriver CreateMonCounter(/*@observer@*/SConnection *pCon, /*@observer@*/char *name, char *params);
|
||||
|
||||
@@ -118,25 +120,12 @@ static pCounterDriver CreateCounterDriverAnsto(SConnection *pCon,
|
||||
return pDriver;
|
||||
}
|
||||
/*-------------------------------------------------------------------*/
|
||||
static HistDriver *CreateHistMem(char *name, pStringDict pOptions){
|
||||
static HistDriver *CreateAnstoHistMem(char *name, pStringDict pOptions){
|
||||
HistDriver *pNew = NULL;
|
||||
|
||||
if(strcmp(name,"anstohm") == 0){
|
||||
//#ifdef __cplusplus
|
||||
printf("try to CreateAnstoHM() ...\n");
|
||||
// pNew = CreateAnstoHM(pOptions);
|
||||
//#endif /* __cplusplus */
|
||||
if(strcmp(name,"anstohttp") == 0){
|
||||
pNew = CreateAnstoHttpDriver(pOptions);
|
||||
}
|
||||
|
||||
if(strcmp(name,"hm_mrpd") == 0){
|
||||
printf("try to Create HM for MRPD ...\n");
|
||||
// pNew = CreateHmMrpd(pOptions);
|
||||
}
|
||||
|
||||
if(strcmp(name,"hm_asim") == 0){
|
||||
// pNew = CreateHmAsim(pOptions);
|
||||
}
|
||||
|
||||
return pNew;
|
||||
}
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -227,7 +216,7 @@ pSite getSite(void)
|
||||
siteANSTO->RemoveSiteCommands = RemoveCommands;
|
||||
siteANSTO->CreateMotor = CreateMotorAnsto;
|
||||
siteANSTO->CreateCounterDriver = CreateCounterDriverAnsto;
|
||||
siteANSTO->CreateHistogramMemoryDriver = CreateHistMem;
|
||||
siteANSTO->CreateHistogramMemoryDriver = CreateAnstoHistMem;
|
||||
siteANSTO->CreateVelocitySelector = CreateVelSelDriv;
|
||||
siteANSTO->CreateControllerDriver = CreateController;
|
||||
siteANSTO->InstallEnvironmentController = InstallEnvironmentController;
|
||||
|
||||
Reference in New Issue
Block a user