allow text parameters
This commit is contained in:
3
modriv.h
3
modriv.h
@ -14,6 +14,7 @@
|
||||
#define MOTREDO -1
|
||||
#define MOTFAIL 0
|
||||
#define MOTOK 1
|
||||
#define TEXTPARLEN 1024
|
||||
|
||||
typedef struct __AbstractMoDriv {
|
||||
/* general motor driver interface
|
||||
@ -33,6 +34,7 @@ typedef struct __AbstractMoDriv {
|
||||
char *name, float newValue);
|
||||
void (*ListDriverPar) (void *self, char *motorName, SConnection * pCon);
|
||||
void (*KillPrivate) (void *self);
|
||||
int (*GetDriverTextPar) (void *self, char *name, char *textPar);
|
||||
} MotorDriver;
|
||||
|
||||
/* the first fields above HAVE to be IDENTICAL to those below */
|
||||
@ -56,6 +58,7 @@ typedef struct ___MoSDriv {
|
||||
char *name, float newValue);
|
||||
void (*ListDriverPar) (void *self, char *motorName, SConnection * pCon);
|
||||
void (*KillPrivate) (void *self);
|
||||
int (*GetDriverTextPar) (void *self, char *name, char *textPar);
|
||||
|
||||
/* Simulation specific fields */
|
||||
float fFailure; /* percent random failures */
|
||||
|
Reference in New Issue
Block a user