202 lines
8.3 KiB
C
202 lines
8.3 KiB
C
/*************************************************************************\
|
|
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
|
* National Laboratory.
|
|
* Copyright (c) 2002 The Regents of the University of California, as
|
|
* Operator of Los Alamos National Laboratory.
|
|
* EPICS BASE Versions 3.13.7
|
|
* and higher are distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
\*************************************************************************/
|
|
/* dbTestRegister.c */
|
|
/* Author: Marty Kraimer Date: 26APR2000 */
|
|
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
|
|
#include "dbTest.h"
|
|
#include "db_test.h"
|
|
#include "dbLock.h"
|
|
#include "dbScan.h"
|
|
#include "ellLib.h"
|
|
#include "dbNotify.h"
|
|
#define epicsExportSharedSymbols
|
|
#include "iocsh.h"
|
|
#include "dbTestRegister.h"
|
|
|
|
/* dba */
|
|
static const iocshArg dbaArg0 = { "record name",iocshArgString};
|
|
static const iocshArg * const dbaArgs[1] = {&dbaArg0};
|
|
static const iocshFuncDef dbaFuncDef = {"dba",1,dbaArgs};
|
|
static void dbaCallFunc(const iocshArgBuf *args) { dba(args[0].sval);}
|
|
|
|
/* dbl */
|
|
static const iocshArg dblArg0 = { "record type",iocshArgString};
|
|
static const iocshArg dblArg1 = { "output file",iocshArgString};
|
|
static const iocshArg dblArg2 = { "fields",iocshArgString};
|
|
static const iocshArg * const dblArgs[3] = {&dblArg0,&dblArg1,&dblArg2};
|
|
static const iocshFuncDef dblFuncDef = {"dbl",3,dblArgs};
|
|
static void dblCallFunc(const iocshArgBuf *args)
|
|
{
|
|
dbl(args[0].sval,args[1].sval,args[2].sval);
|
|
}
|
|
|
|
/* dbnr */
|
|
static const iocshArg dbnrArg0 = { "verbose",iocshArgInt};
|
|
static const iocshArg * const dbnrArgs[1] = {&dbnrArg0};
|
|
static const iocshFuncDef dbnrFuncDef = {"dbnr",1,dbnrArgs};
|
|
static void dbnrCallFunc(const iocshArgBuf *args) { dbnr(args[0].ival);}
|
|
|
|
/* dbgrep */
|
|
static const iocshArg dbgrepArg0 = { "record name",iocshArgString};
|
|
static const iocshArg * const dbgrepArgs[1] = {&dbgrepArg0};
|
|
static const iocshFuncDef dbgrepFuncDef = {"dbgrep",1,dbgrepArgs};
|
|
static void dbgrepCallFunc(const iocshArgBuf *args) { dbgrep(args[0].sval);}
|
|
|
|
/* dbgf */
|
|
static const iocshArg dbgfArg0 = { "record name",iocshArgString};
|
|
static const iocshArg * const dbgfArgs[1] = {&dbgfArg0};
|
|
static const iocshFuncDef dbgfFuncDef = {"dbgf",1,dbgfArgs};
|
|
static void dbgfCallFunc(const iocshArgBuf *args) { dbgf(args[0].sval);}
|
|
|
|
/* dbpf */
|
|
static const iocshArg dbpfArg0 = { "record name",iocshArgString};
|
|
static const iocshArg dbpfArg1 = { "value",iocshArgString};
|
|
static const iocshArg * const dbpfArgs[2] = {&dbpfArg0,&dbpfArg1};
|
|
static const iocshFuncDef dbpfFuncDef = {"dbpf",2,dbpfArgs};
|
|
static void dbpfCallFunc(const iocshArgBuf *args)
|
|
{ dbpf(args[0].sval,args[1].sval);}
|
|
|
|
/* dbpr */
|
|
static const iocshArg dbprArg0 = { "record name",iocshArgString};
|
|
static const iocshArg dbprArg1 = { "interest level",iocshArgInt};
|
|
static const iocshArg * const dbprArgs[2] = {&dbprArg0,&dbprArg1};
|
|
static const iocshFuncDef dbprFuncDef = {"dbpr",2,dbprArgs};
|
|
static void dbprCallFunc(const iocshArgBuf *args)
|
|
{ dbpr(args[0].sval,args[1].ival);}
|
|
|
|
/* dbtr */
|
|
static const iocshArg dbtrArg0 = { "record name",iocshArgString};
|
|
static const iocshArg * const dbtrArgs[1] = {&dbtrArg0};
|
|
static const iocshFuncDef dbtrFuncDef = {"dbtr",1,dbtrArgs};
|
|
static void dbtrCallFunc(const iocshArgBuf *args) { dbtr(args[0].sval);}
|
|
|
|
/* dbtgf */
|
|
static const iocshArg dbtgfArg0 = { "record name",iocshArgString};
|
|
static const iocshArg * const dbtgfArgs[1] = {&dbtgfArg0};
|
|
static const iocshFuncDef dbtgfFuncDef = {"dbtgf",1,dbtgfArgs};
|
|
static void dbtgfCallFunc(const iocshArgBuf *args) { dbtgf(args[0].sval);}
|
|
|
|
/* dbtpf */
|
|
static const iocshArg dbtpfArg0 = { "record name",iocshArgString};
|
|
static const iocshArg dbtpfArg1 = { "value",iocshArgString};
|
|
static const iocshArg * const dbtpfArgs[2] = {&dbtpfArg0,&dbtpfArg1};
|
|
static const iocshFuncDef dbtpfFuncDef = {"dbtpf",2,dbtpfArgs};
|
|
static void dbtpfCallFunc(const iocshArgBuf *args)
|
|
{ dbtpf(args[0].sval,args[1].sval);}
|
|
|
|
/* dbior */
|
|
static const iocshArg dbiorArg0 = { "record name",iocshArgString};
|
|
static const iocshArg dbiorArg1 = { "interest level",iocshArgInt};
|
|
static const iocshArg * const dbiorArgs[2] = {&dbiorArg0,&dbiorArg1};
|
|
static const iocshFuncDef dbiorFuncDef = {"dbior",2,dbiorArgs};
|
|
static void dbiorCallFunc(const iocshArgBuf *args)
|
|
{ dbior(args[0].sval,args[1].ival);}
|
|
|
|
/* dbhcr */
|
|
static const iocshArg dbhcrArg0 = { "filename",iocshArgString};
|
|
static const iocshArg * const dbhcrArgs[1] = {&dbhcrArg0};
|
|
static const iocshFuncDef dbhcrFuncDef = {"dbhcr",1,dbhcrArgs};
|
|
static void dbhcrCallFunc(const iocshArgBuf *args) { dbhcr(args[0].sval);}
|
|
|
|
/* gft */
|
|
static const iocshArg gftArg0 = { "record name",iocshArgString};
|
|
static const iocshArg * const gftArgs[1] = {&gftArg0};
|
|
static const iocshFuncDef gftFuncDef = {"gft",1,gftArgs};
|
|
static void gftCallFunc(const iocshArgBuf *args) { gft(args[0].sval);}
|
|
|
|
/* pft */
|
|
static const iocshArg pftArg0 = { "record name",iocshArgString};
|
|
static const iocshArg pftArg1 = { "value",iocshArgString};
|
|
static const iocshArg * const pftArgs[2] = {&pftArg0,&pftArg1};
|
|
static const iocshFuncDef pftFuncDef = {"pft",2,pftArgs};
|
|
static void pftCallFunc(const iocshArgBuf *args)
|
|
{ pft(args[0].sval,args[1].sval);}
|
|
|
|
/* dbtpn */
|
|
static const iocshArg dbtpnArg0 = { "record name",iocshArgString};
|
|
static const iocshArg dbtpnArg1 = { "value",iocshArgString};
|
|
static const iocshArg * const dbtpnArgs[2] = {&dbtpnArg0,&dbtpnArg1};
|
|
static const iocshFuncDef dbtpnFuncDef = {"dbtpn",2,dbtpnArgs};
|
|
static void dbtpnCallFunc(const iocshArgBuf *args)
|
|
{ dbtpn(args[0].sval,args[1].sval);}
|
|
|
|
/* tpn */
|
|
static const iocshArg tpnArg0 = { "record name",iocshArgString};
|
|
static const iocshArg tpnArg1 = { "value",iocshArgString};
|
|
static const iocshArg * const tpnArgs[2] = {&tpnArg0,&tpnArg1};
|
|
static const iocshFuncDef tpnFuncDef = {"tpn",2,tpnArgs};
|
|
static void tpnCallFunc(const iocshArgBuf *args)
|
|
{ tpn(args[0].sval,args[1].sval);}
|
|
|
|
/* dblsr */
|
|
static const iocshArg dblsrArg0 = { "record name",iocshArgString};
|
|
static const iocshArg dblsrArg1 = { "interest level",iocshArgInt};
|
|
static const iocshArg * const dblsrArgs[2] = {&dblsrArg0,&dblsrArg1};
|
|
static const iocshFuncDef dblsrFuncDef = {"dblsr",2,dblsrArgs};
|
|
static void dblsrCallFunc(const iocshArgBuf *args)
|
|
{ dblsr(args[0].sval,args[1].ival);}
|
|
|
|
/* dbLockShowLocked */
|
|
static const iocshArg dbLockShowLockedArg0 = { "interest level",iocshArgInt};
|
|
static const iocshArg * const dbLockShowLockedArgs[1] = {&dbLockShowLockedArg0};
|
|
static const iocshFuncDef dbLockShowLockedFuncDef =
|
|
{"dbLockShowLocked",1,dbLockShowLockedArgs};
|
|
static void dbLockShowLockedCallFunc(const iocshArgBuf *args)
|
|
{ dbLockShowLocked(args[0].ival);}
|
|
|
|
/* scanppl */
|
|
static const iocshArg scanpplArg0 = { "rate",iocshArgDouble};
|
|
static const iocshArg * const scanpplArgs[1] = {&scanpplArg0};
|
|
static const iocshFuncDef scanpplFuncDef = {"scanppl",1,scanpplArgs};
|
|
static void scanpplCallFunc(const iocshArgBuf *args)
|
|
{ scanppl(args[0].dval);}
|
|
|
|
/* scanpel */
|
|
static const iocshArg scanpelArg0 = { "event number",iocshArgInt};
|
|
static const iocshArg * const scanpelArgs[1] = {&scanpelArg0};
|
|
static const iocshFuncDef scanpelFuncDef = {"scanpel",1,scanpelArgs};
|
|
static void scanpelCallFunc(const iocshArgBuf *args)
|
|
{ scanpel(args[0].ival);}
|
|
|
|
/* scanpiol */
|
|
static const iocshFuncDef scanpiolFuncDef = {"scanpiol",0};
|
|
static void scanpiolCallFunc(const iocshArgBuf *args) { scanpiol();}
|
|
|
|
void epicsShareAPI dbTestRegister(void)
|
|
{
|
|
iocshRegister(&dbaFuncDef,dbaCallFunc);
|
|
iocshRegister(&dblFuncDef,dblCallFunc);
|
|
iocshRegister(&dbnrFuncDef,dbnrCallFunc);
|
|
iocshRegister(&dbgrepFuncDef,dbgrepCallFunc);
|
|
iocshRegister(&dbgfFuncDef,dbgfCallFunc);
|
|
iocshRegister(&dbpfFuncDef,dbpfCallFunc);
|
|
iocshRegister(&dbprFuncDef,dbprCallFunc);
|
|
iocshRegister(&dbtrFuncDef,dbtrCallFunc);
|
|
iocshRegister(&dbtgfFuncDef,dbtgfCallFunc);
|
|
iocshRegister(&dbtpfFuncDef,dbtpfCallFunc);
|
|
iocshRegister(&dbiorFuncDef,dbiorCallFunc);
|
|
iocshRegister(&dbhcrFuncDef,dbhcrCallFunc);
|
|
iocshRegister(&gftFuncDef,gftCallFunc);
|
|
iocshRegister(&pftFuncDef,pftCallFunc);
|
|
iocshRegister(&dbtpnFuncDef,dbtpnCallFunc);
|
|
iocshRegister(&tpnFuncDef,tpnCallFunc);
|
|
iocshRegister(&dblsrFuncDef,dblsrCallFunc);
|
|
iocshRegister(&dbLockShowLockedFuncDef,dbLockShowLockedCallFunc);
|
|
iocshRegister(&scanpplFuncDef,scanpplCallFunc);
|
|
iocshRegister(&scanpelFuncDef,scanpelCallFunc);
|
|
iocshRegister(&scanpiolFuncDef,scanpiolCallFunc);
|
|
}
|