Add HAS_<record>dset macros to allow detection

External device support that must also build against earlier
Base versions can use these to determine whether they need so
declare their own dset structures for each record type.
This commit is contained in:
Andrew Johnson
2019-11-23 22:23:47 -06:00
parent b1b51cc70e
commit 45c7039a45
5 changed files with 5 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ monitoring deadband functionality.
% dset common;
% long (*read_int64in)(struct int64inRecord *prec);
%} int64indset;
%#define HAS_int64indset
%
field(VAL,DBF_INT64) {
prompt("Current value")

View File

@@ -145,6 +145,7 @@ monitoring deadband functionality.
% dset common;
% long (*write_int64out)(struct int64outRecord *prec);
%} int64outdset;
%#define HAS_int64outdset
%
field(VAL,DBF_INT64) {
prompt("Desired Output")

View File

@@ -15,6 +15,7 @@ recordtype(lsi) {
% dset common;
% long (*read_string)(struct lsiRecord *prec);
%} lsidset;
%#define HAS_lsidset
%
field(VAL,DBF_NOACCESS) {
prompt("Current Value")

View File

@@ -15,6 +15,7 @@ recordtype(lso) {
% dset common;
% long (*write_string)(struct lsoRecord *prec);
%} lsodset;
%#define HAS_lsodset
%
field(VAL,DBF_NOACCESS) {
prompt("Current Value")

View File

@@ -15,6 +15,7 @@ recordtype(printf) {
% dset common;
% long (*write_string)(struct printfRecord *prec);
%} printfdset;
%#define HAS_printfdset
%
field(VAL,DBF_NOACCESS) {
prompt("Result")