- Added Sycamore protocol and command context to SICS
- Added sinfo to SICS - Added driver for TCP/IP Astrium velocity selector - Added driver for TCP/IP Astrium chopper controller SKIPPED: psi/amor2t.c psi/amorstat.c psi/dornier2.c psi/ecb.c psi/el734hp.c psi/fowrite.c psi/libpsi.a psi/make_gen psi/nextrics.c psi/pardef.c psi/pimotor.c psi/pipiezo.c psi/polterwrite.c psi/psi.c psi/scontroller.c psi/serial.c psi/tasinit.c psi/tasscan.c psi/tcpdocho.c psi/tcpdornier.c psi/tricssupport.c psi/velodornier.c
This commit is contained in:
22
ifile.c
22
ifile.c
@ -153,6 +153,28 @@
|
||||
{
|
||||
return CreateNewEntry(name,value,pList);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
IPair *IFSetOption(IPair *pList,char *name, char *value)
|
||||
{
|
||||
IPair *pCurrent;
|
||||
if(NULL!=pList)
|
||||
{
|
||||
pCurrent = pList;
|
||||
while((NULL!=pCurrent) && (0!=strcmp(name,pCurrent->name)))
|
||||
{
|
||||
pCurrent = pCurrent->pNext;
|
||||
}
|
||||
if(NULL!=pCurrent)
|
||||
{ /* replace value */
|
||||
free(pCurrent->value);
|
||||
pCurrent->value = strdup(value);
|
||||
return pCurrent;
|
||||
}
|
||||
}
|
||||
return CreateNewEntry(name,value,pList);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
int IFSaveOptions(IPair *pList,FILE *fd)
|
||||
|
Reference in New Issue
Block a user