From 4f8134c63ccc73c4d64d07469774ab653e36c96a Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Fri, 24 Mar 2017 17:08:07 +0100 Subject: [PATCH] Fix xxxRecord in templates to make exampleApp work --- .../base/top/exampleApp/src/xxxRecord.c | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/template/base/top/exampleApp/src/xxxRecord.c b/src/template/base/top/exampleApp/src/xxxRecord.c index f4b65d204..c2693c48e 100644 --- a/src/template/base/top/exampleApp/src/xxxRecord.c +++ b/src/template/base/top/exampleApp/src/xxxRecord.c @@ -25,21 +25,21 @@ /* Create RSET - Record Support Entry Table */ #define report NULL #define initialize NULL -static long init_record(); -static long process(); +static long init_record(struct dbCommon *, int); +static long process(struct dbCommon *); #define special NULL #define get_value NULL #define cvt_dbaddr NULL #define get_array_info NULL #define put_array_info NULL -static long get_units(); -static long get_precision(); +static long get_units(DBADDR *, char *); +static long get_precision(const DBADDR *, long *); #define get_enum_str NULL #define get_enum_strs NULL #define put_enum_str NULL -static long get_graphic_double(); -static long get_control_double(); -static long get_alarm_double(); +static long get_graphic_double(DBADDR *, struct dbr_grDouble *); +static long get_control_double(DBADDR *, struct dbr_ctrlDouble *); +static long get_alarm_double(DBADDR *, struct dbr_alDouble *); rset xxxRSET={ RSETNUMBER, @@ -75,9 +75,9 @@ typedef struct xxxset { /* xxx input dset */ static void checkAlarms(xxxRecord *prec); static void monitor(xxxRecord *prec); -static long init_record(void *precord,int pass) +static long init_record(struct dbCommon *pcommon, int pass) { - xxxRecord *prec = (xxxRecord *)precord; + xxxRecord *prec = (xxxRecord *)pcommon; xxxdset *pdset; long status; @@ -99,9 +99,9 @@ static long init_record(void *precord,int pass) return(0); } -static long process(void *precord) +static long process(struct dbCommon *pcommon) { - xxxRecord *prec = (xxxRecord *)precord; + xxxRecord *prec = (xxxRecord *)pcommon; xxxdset *pdset = (xxxdset *)(prec->dset); long status; unsigned char pact=prec->pact; @@ -138,7 +138,7 @@ static long get_units(DBADDR *paddr, char *units) return(0); } -static long get_precision(DBADDR *paddr, long *precision) +static long get_precision(const DBADDR *paddr, long *precision) { xxxRecord *prec=(xxxRecord *)paddr->precord;