/*************************************************************************\ * Copyright (c) 2007 UChicago Argonne LLC, as Operator of Argonne * National Laboratory. * SPDX-License-Identifier: EPICS * EPICS BASE is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. \*************************************************************************/ #include "iocsh.h" #include "dbtoolsIocRegister.h" #include "dbLoadTemplate.h" /* dbLoadTemplate */ static const iocshArg dbLoadTemplateArg0 = {"filename", iocshArgString}; static const iocshArg dbLoadTemplateArg1 = {"var=value", iocshArgString}; static const iocshArg * const dbLoadTemplateArgs[2] = { &dbLoadTemplateArg0, &dbLoadTemplateArg1 }; static const iocshFuncDef dbLoadTemplateFuncDef = {"dbLoadTemplate", 2, dbLoadTemplateArgs}; static void dbLoadTemplateCallFunc(const iocshArgBuf *args) { iocshSetError(dbLoadTemplate(args[0].sval, args[1].sval)); } void dbtoolsIocRegister(void) { iocshRegister(&dbLoadTemplateFuncDef, dbLoadTemplateCallFunc); }