Modify lsodset, set USE_TYPED_DSET
This commit is contained in:
@@ -31,6 +31,7 @@ stdRecords += longinRecord
|
||||
stdRecords += longoutRecord
|
||||
lsiRecord_CFLAGS += -DUSE_TYPED_DSET
|
||||
stdRecords += lsiRecord
|
||||
lsoRecord_CFLAGS += -DUSE_TYPED_DSET
|
||||
stdRecords += lsoRecord
|
||||
stdRecords += mbbiRecord
|
||||
stdRecords += mbbiDirectRecord
|
||||
|
||||
@@ -70,15 +70,15 @@ static long init_record(struct dbCommon *pcommon, int pass)
|
||||
}
|
||||
|
||||
/* must have a write_string function defined */
|
||||
if (pdset->number < 5 || !pdset->write_string) {
|
||||
if (pdset->common.number < 5 || !pdset->write_string) {
|
||||
recGblRecordError(S_dev_missingSup, prec, "lso: init_record");
|
||||
return S_dev_missingSup;
|
||||
}
|
||||
|
||||
dbLoadLinkLS(&prec->dol, prec->val, prec->sizv, &prec->len);
|
||||
|
||||
if (pdset->init_record) {
|
||||
long status = pdset->init_record(prec);
|
||||
if (pdset->common.init_record) {
|
||||
long status = pdset->common.init_record(pcommon);
|
||||
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
@@ -10,13 +10,10 @@ recordtype(lso) {
|
||||
%#include "devSup.h"
|
||||
%
|
||||
%/* Declare Device Support Entry Table */
|
||||
%struct lsoRecord;
|
||||
%typedef struct lsodset {
|
||||
% long number;
|
||||
% DEVSUPFUN report;
|
||||
% DEVSUPFUN init;
|
||||
% DEVSUPFUN init_record;
|
||||
% DEVSUPFUN get_ioint_info;
|
||||
% DEVSUPFUN write_string;
|
||||
% dset common;
|
||||
% long (*write_string)(struct lsoRecord *prec);
|
||||
%} lsodset;
|
||||
%
|
||||
field(VAL,DBF_NOACCESS) {
|
||||
|
||||
Reference in New Issue
Block a user