- 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
This commit is contained in:
7
pardef.c
7
pardef.c
@ -239,12 +239,15 @@ int ParLog(void *object) {
|
||||
return next;
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
static int ParCallBack(int event, void *eventData, void *userData) {
|
||||
static int ParCallBack(int event, void *eventData, void *userData,
|
||||
commandContext cc) {
|
||||
char *pBuf = (char *)eventData;
|
||||
SConnection *con = (SConnection *)userData;
|
||||
|
||||
if (event == VALUECHANGE) {
|
||||
SCPushContext2(con,cc);
|
||||
SCWrite(con,pBuf,eValue);
|
||||
SCPopContext(con);
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
@ -356,7 +359,7 @@ static int ParExecute(SConnection *con, SicsInterp *sics, void *object, int argc
|
||||
o->pCall = CreateCallBackInterface();
|
||||
}
|
||||
assert(o->pCall);
|
||||
id = RegisterCallback(o->pCall, VALUECHANGE, ParCallBack, con, NULL);
|
||||
id = RegisterCallback(o->pCall, SCGetContext(con),VALUECHANGE, ParCallBack, con, NULL);
|
||||
SCRegister(con, pServ->pSics, o->pCall, id);
|
||||
SCSendOK(con);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user