#include #include #include #include #include #include #include #include #include # #include #include #include "amqSupport.h" //to get the enum of record types (EAi,EWaveform etc) static long init_ai(aiRecord *prec); static long read_ai(aiRecord *prec); struct { long num; DEVSUPFUN report; DEVSUPFUN init; DEVSUPFUN init_record; DEVSUPFUN get_ioint_info; DEVSUPFUN read_ai; DEVSUPFUN special_linconv; } devAiMQ = { 6, /* space for 6 functions */ NULL, NULL, init_ai, NULL, read_ai, NULL }; epicsExportAddress(dset,devAiMQ); static long init_ai(aiRecord *prec){ addPV((void *)prec,EAi,prec->inp.text); //save the info for the message handler return 0; } static long read_ai(aiRecord *prec){ return 2; //ret = 2 to prevent conversion from rval to val }