ioc/dbStatic: add typed_drvet
This commit is contained in:
@@ -28,6 +28,20 @@ typedef struct drvet { /* driver entry table */
|
||||
}drvet;
|
||||
#define DRVETNUMBER ( (sizeof(struct drvet) -sizeof(long))/sizeof(DRVSUPFUN) )
|
||||
|
||||
typedef struct typed_drvet {
|
||||
/** Number of function pointers which follow. Must be >=2 */
|
||||
long number;
|
||||
/** Called from dbior() */
|
||||
long (*report)(int lvl);
|
||||
/** Called during iocInit() */
|
||||
#ifdef __cplusplus
|
||||
long (*init)();
|
||||
#else
|
||||
long (*init)(void);
|
||||
#endif
|
||||
/*other functions are device dependent*/
|
||||
} typed_drvet;
|
||||
|
||||
#define S_drv_noDrvSup (M_drvSup| 1) /*SDR_DRVSUP: Driver support missing*/
|
||||
#define S_drv_noDrvet (M_drvSup| 3) /*Missing driver support entry table*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user