20 #include "lsiRecord.h" 21 #include "stringinRecord.h" 26 static long add_lsi(dbCommon *pcommon) {
27 lsiRecord *
prec = (lsiRecord *) pcommon;
35 static long del_lsi(dbCommon *pcommon) {
39 static struct dsxt dsxtLsiEnviron = {
43 static long init_lsi(
int pass)
51 static long read_lsi(lsiRecord *prec)
53 const char *val = getenv(prec->inp.value.instio.string);
56 strncpy(prec->val, val, prec->sizv);
57 prec->val[prec->sizv - 1] = 0;
58 prec->len = strlen(prec->val);
65 recGblSetSevr(prec,
UDF_ALARM, prec->udfs);
72 {5,
NULL, init_lsi,
NULL, NULL }, read_lsi
79 static long add_stringin(dbCommon *pcommon) {
80 stringinRecord *prec = (stringinRecord *) pcommon;
88 static long del_stringin(dbCommon *pcommon) {
92 static struct dsxt dsxtSiEnviron = {
93 add_stringin, del_stringin
96 static long init_stringin(
int pass)
104 static long read_stringin(stringinRecord *prec)
106 const char *val = getenv(prec->inp.value.instio.string);
116 recGblSetSevr(prec,
UDF_ALARM, prec->udfs);
123 {5,
NULL, init_stringin,
NULL, NULL},
void devExtend(dsxt *pdsxt)
epicsExportAddress(dset, devLsiEnviron)
stringindset devSiEnviron