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

@ -220,13 +220,13 @@ int InstallProtocol(SConnection * pCon, SicsInterp * pSics, void *pData,
}
/*------------------------------------------------------------------------*/
void MakeProtocol(SicsInterp * pSics)
void MakeProtocol(void)
{
pProtocol pNew = NULL;
pNew = CreateProtocol();
if (NULL != pNew) {
AddCommand(pSics, "Protocol", ProtocolAction, DeleteProtocol, pNew);
AddCommand(pSics, "contextdo", ContextDo, NULL, NULL);
AddCommand(pServ->pSics, "Protocol", ProtocolAction, DeleteProtocol, pNew);
AddCommand(pServ->pSics, "contextdo", ContextDo, NULL, NULL);
}
}