diff --git a/confvirtmot.h b/confvirtmot.h index 6eb132bc..919a18aa 100644 --- a/confvirtmot.h +++ b/confvirtmot.h @@ -14,8 +14,8 @@ #include "sics.h" int MakeConfigurableVirtualMotor(SConnection *pCon, SicsInterp *pSics, - void *data, int aargc, char *argv[]); + void *data, int aargc, char *argv[]); int ConfigurableVirtualMotorAction(SConnection *pCon, SicsInterp *pSics, - void *data, int argc, char *argv[]); + void *data, int argc, char *argv[]); #endif diff --git a/confvirtmot.i b/confvirtmot.i index 1628cfbf..d2ea3dec 100644 --- a/confvirtmot.i +++ b/confvirtmot.i @@ -5,15 +5,18 @@ -----------------------------------------------------------------------*/ typedef struct __CONFVIRTMOT { - pObjectDescriptor pDes; - pIDrivable pDriv; - char *scriptName; - char *readScript; - int motorList; - float targetValue; - int targetReached; - char scriptError[512]; - int parseOK; + pObjectDescriptor pDes; + pIDrivable pDriv; + pICallBack pCall; + char *name; + char *scriptName; + char *readScript; + int motorList; + float targetValue; + int targetReached; + int posCount; + char scriptError[512]; + int parseOK; }ConfigurableVirtualMotor, *pConfigurableVirtualMotor;