add dbLoadGroup()

This commit is contained in:
Michael Davidsaver
2020-11-28 10:45:34 -08:00
parent c32cc1ba3c
commit 1335d75403
5 changed files with 92 additions and 1 deletions
+8 -1
View File
@@ -29,6 +29,8 @@
#include "iocsh.h"
#include "osiFileName.h"
#include <pv/qsrv.h>
extern "C" int softIocPVA_registerRecordDeviceDriver(struct dbBase *pdbbase);
#ifndef EPICS_BASE
@@ -76,6 +78,8 @@ void usage(const char *arg0, const std::string& base_dbd) {
" -a <acf> Access Security configuration file. Macro substitution is\n"
" performed.\n"
"\n"
" -G <json> DB Group definition file in JSON format.\n"
"\n"
" -m <MAC>=<value>,... Set/replace macro definitions used by subsequent -d and\n"
" -a.\n"
"\n"
@@ -155,7 +159,7 @@ int main(int argc, char *argv[])
int opt;
while ((opt = getopt(argc, argv, "ha:D:d:m:Ssx:v")) != -1) {
while ((opt = getopt(argc, argv, "ha:D:d:m:Ssx:G:v")) != -1) {
switch (opt) {
case 'h': /* Print usage */
usage(argv[0], dbd_file);
@@ -216,6 +220,9 @@ int main(int argc, char *argv[])
std::string("Failed to load: ")+exit_file);
loadedDb = true;
break;
case 'G':
dbLoadGroup(optarg);
break;
}
}