new
This commit is contained in:
34
src/iocsh/dbCaTestRegister.c
Normal file
34
src/iocsh/dbCaTestRegister.c
Normal file
@@ -0,0 +1,34 @@
|
||||
/* dbCaTestRegister.h */
|
||||
/* Author: Marty Kraimer Date: 01MAY2000 */
|
||||
|
||||
/********************COPYRIGHT NOTIFICATION**********************************
|
||||
This software was developed under a United States Government license
|
||||
described on the COPYRIGHT_UniversityOfChicago file included as part
|
||||
of this distribution.
|
||||
****************************************************************************/
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "ioccrf.h"
|
||||
#include "dbCaTest.h"
|
||||
#define epicsExportSharedSymbols
|
||||
#include "dbCaTestRegister.h"
|
||||
|
||||
/* dbcar */
|
||||
ioccrfArg dbcarArg0 = { "record name",ioccrfArgString,0};
|
||||
ioccrfArg dbcarArg1 = { "level",ioccrfArgInt,0};
|
||||
ioccrfArg *dbcarArgs[2] = {&dbcarArg0,&dbcarArg1};
|
||||
ioccrfFuncDef dbcarFuncDef = {"dbcar",2,dbcarArgs};
|
||||
void dbcarCallFunc(ioccrfArg **args)
|
||||
{
|
||||
dbcar((char *)args[0]->value,*(char *)args[1]->value);
|
||||
}
|
||||
|
||||
|
||||
void epicsShareAPI dbCaTestRegisterInit(void)
|
||||
{
|
||||
ioccrfRegister(&dbcarFuncDef,dbcarCallFunc);
|
||||
}
|
||||
25
src/iocsh/dbCaTestRegister.h
Normal file
25
src/iocsh/dbCaTestRegister.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* dbCaTestRegisterInit.h */
|
||||
/* Author: Marty Kraimer Date: 27APR2000 */
|
||||
|
||||
/********************COPYRIGHT NOTIFICATION**********************************
|
||||
This software was developed under a United States Government license
|
||||
described on the COPYRIGHT_UniversityOfChicago file included as part
|
||||
of this distribution.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef INCdbCaTestRegisterInitH
|
||||
#define INCdbCaTestRegisterInitH
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
epicsShareFunc void epicsShareAPI dbCaTestRegisterInit(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*INCdbCaTestRegisterInitH*/
|
||||
Reference in New Issue
Block a user