/* devErrlogSoft.c */
/* Example device support module */

#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "alarm.h"
#include "cvtTable.h"
#include "dbDefs.h"
#include "dbAccess.h"
#include "recGbl.h"
#include "recSup.h"
#include "devSup.h"
#include "link.h"
#include "xxxRecord.h"
#include "epicsExport.h"
#include "stringoutRecord.h"

/*Create the dset for devErrlogSoft */
static long init_record();
static long read_message();
struct {
	long		number;
	DEVSUPFUN	report;
	DEVSUPFUN	init;
	DEVSUPFUN	init_record;
	DEVSUPFUN	get_ioint_info;
	DEVSUPFUN	read_message;
}devErrlogSoft={
	5,
	NULL,
	NULL,
	init_record,
	NULL,
	read_message,
};
epicsExportAddress(dset,devErrlogSoft);


static long init_record(pxxx)
    struct stringoutRecord	*pxxx;
{
    return(0);
}

static long read_message(pRecord)
    struct stringoutRecord	*pRecord;
{
    printf("##### %s", pRecord->out.value.instio.string);
    return(0);
}
