use dbInitEntryFromRecord() from 3.16.1

This commit is contained in:
Michael Davidsaver
2018-01-30 11:44:37 -08:00
parent 9cc417103b
commit 95a74aa134

View File

@ -100,9 +100,13 @@ struct pdbRecordIterator {
}
pdbRecordIterator(const dbChannel *chan)
{
#if EPICS_VERSION_INT>=VERSION_INT(3,16,1,0)
dbInitEntryFromRecord(dbChannelRecord(chan), &ent);
#else
dbInitEntry(pdbbase, &ent);
if(dbFindRecord(&ent, dbChannelRecord(chan)->name)!=0)
throw std::runtime_error("Record not found");
throw std::logic_error("Record not found");
#endif
m_done = false;
}
~pdbRecordIterator()