Export and use int64indset, set USE_TYPED_DSET

This commit is contained in:
Andrew Johnson
2019-11-16 22:40:08 -06:00
parent 7893445a2e
commit 7e1d165092
6 changed files with 29 additions and 40 deletions

View File

@@ -151,8 +151,9 @@ static long init(int pass)
return 0;
}
static long init_record(int64inRecord *prec)
static long init_record(dbCommon *common)
{
int64inRecord *prec = (int64inRecord *)common;
if (recGblInitConstantLink(&prec->inp, DBR_INT64, &prec->val))
prec->udf = FALSE;
@@ -204,11 +205,7 @@ static long read_int64in(int64inRecord *prec)
}
/* Create the dset for devI64inSoftCallback */
struct {
dset common;
DEVSUPFUN read_int64in;
} devI64inSoftCallback = {
{5, NULL, init, init_record, NULL},
read_int64in
int64indset devI64inSoftCallback = {
{ 5, NULL, init, init_record, NULL }, read_int64in
};
epicsExportAddress(dset, devI64inSoftCallback);