Export and use aidset, set USE_TYPED_DSET

I did ai so I can use it as an example in the Release Notes.
This commit is contained in:
Andrew Johnson
2019-11-30 00:17:23 -06:00
parent 6eaef18347
commit 5407a25775
9 changed files with 56 additions and 78 deletions

View File

@@ -50,8 +50,9 @@ static struct ai_channel {
{"TIME", getCurrentTime},
};
static long init_ai(aiRecord *prec)
static long init_ai(dbCommon *pcommon)
{
aiRecord *prec = (aiRecord *)pcommon;
int i;
if (prec->inp.type != INST_IO) {
@@ -91,12 +92,9 @@ static long read_ai(aiRecord *prec)
return -1;
}
struct {
dset common;
DEVSUPFUN read_write;
DEVSUPFUN special_linconv;
} devAiGeneralTime = {
{6, NULL, NULL, init_ai, NULL}, read_ai, NULL
aidset devAiGeneralTime = {
{6, NULL, NULL, init_ai, NULL},
read_ai, NULL
};
epicsExportAddress(dset, devAiGeneralTime);
@@ -114,8 +112,9 @@ static struct bo_channel {
{"RSTERRCNT", resetErrors},
};
static long init_bo(boRecord *prec)
static long init_bo(dbCommon *pcommon)
{
boRecord *prec = (boRecord *)pcommon;
int i;
if (prec->out.type != INST_IO) {
@@ -173,8 +172,9 @@ static struct li_channel {
{"GETERRCNT", errorCount},
};
static long init_li(longinRecord *prec)
static long init_li(dbCommon *pcommon)
{
longinRecord *prec = (longinRecord *)pcommon;
int i;
if (prec->inp.type != INST_IO) {
@@ -243,8 +243,9 @@ static struct si_channel {
{"BESTTEP", eventProvider},
};
static long init_si(stringinRecord *prec)
static long init_si(dbCommon *pcommon)
{
stringinRecord *prec = (stringinRecord *)pcommon;
int i;
if (prec->inp.type != INST_IO) {