restructured configuration (ofac.c)

- ofac.c contains now only the command in initialisation function list
- the other functions are moved to sicsutil.c
- moved DoubleTime and the content of access.c to sicsutil.c
- moved some initialisation code from ofac.c to the corresponding modules
This commit is contained in:
zolliker
2010-01-28 08:14:37 +00:00
parent 9b18a3bd0a
commit 4bf0c87daf
15 changed files with 199 additions and 515 deletions

View File

@ -1305,3 +1305,20 @@ void UnlockDeviceExecutor(pExeList self)
assert(self);
self->iLock = 0;
}
/*--------------------------------------------------------------------*/
void DevExecInit(void)
{
pExeList pExe = pServ->pExecutor;
/* commands to do with the executor. Only StopExe carries the
DeleteFunction in order to avoid double deletion. All the
other commands operate on the same datastructure.
*/
AddCommand(pServ->pSics, "StopExe", StopCommand, DeleteExeList, pExe);
AddCommand(pServ->pSics, "ListExe", ListExe, NULL, pExe);
AddCommand(pServ->pSics, "sicsidle", SicsIdle, NULL, pExe);
AddCommand(pServ->pSics, "Success", Success, NULL, pExe);
AddCommand(pServ->pSics, "pause", PauseAction, NULL, pExe);
AddCommand(pServ->pSics, "continue", ContinueAction, NULL, pExe);
AddCommand(pServ->pSics, "devexec", DevexecAction, NULL, pExe);
}