dynamicly setting the xAT tables
r3443 | jgn | 2012-03-12 09:48:42 +1100 (Mon, 12 Mar 2012) | 1 line
This commit is contained in:
committed by
Douglas Clowes
parent
909667298d
commit
f3eb27c282
@@ -44,6 +44,7 @@ static char configure[] = {"/admin/configure.egi"};
|
||||
static char preset[] = {"/admin/presethm.egi"};
|
||||
static char dynamicsrvmodify[] = {"/admin/selectdynamicsrvmodify.egi?dynamicSRVmodifyparamname=%s&dynamicSRVmodifyparamvalue=%s"};
|
||||
static char dynamicfatmodify[] = {"/admin/selectdynamicfatmodify.egi?dynamicFATmodifyparamname=%s&dynamicFATmodifyparamvalue=%s"};
|
||||
static char dynamicxatmodify[] = {"/admin/selectdynamicxatmodify.egi?dynamicxATmodifyparamname=%s&dynamicxATmodifyparamvalue=%s"};
|
||||
static char devName[32] = "histmem";
|
||||
/*====================================================================
|
||||
error codes
|
||||
@@ -311,8 +312,11 @@ static int AnstoHttpConfigure(pHistDriver self, SConnection *pCon,
|
||||
char modify_http_request[1024]="";
|
||||
if (strncasecmp(pItem,"SRV_",4)==0)
|
||||
sprintf(modify_http_request,dynamicsrvmodify,pItem+4,pValue);
|
||||
if (strncasecmp(pItem,"FAT_",4)==0)
|
||||
else if (strncasecmp(pItem,"FAT_",4)==0)
|
||||
sprintf(modify_http_request,dynamicfatmodify,pItem+4,pValue);
|
||||
// MJL 3/12 General (hierachical) xAT section attribute or table element e.g. CAT:MESYTEC_MPSD8_THRESHOLDS.0
|
||||
else if (pItem[0]&&strncasecmp(pItem+1,"AT:",3)==0) // e.g. FAT: BAT: OAT: CAT: etc.
|
||||
sprintf(modify_http_request,dynamicxatmodify,pItem,pValue); // preserve full hierachical prefix (don't strip)
|
||||
// Try committing the setting to the histogram server
|
||||
if (*modify_http_request)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user