Directory moves. src/RTEMS/ => src/libCom/RTEMS/ src/as/ => src/ioc/as/ src/bpt/ => src/ioc/bpt/ src/ca/ => src/ca/client/ src/cap5/ => src/ca/client/perl/ src/cas/ => src/ca/legacy/pcas/ src/catools/ => src/ca/client/tools/ src/db/ => src/ioc/db/ src/dbStatic/ => src/ioc/dbStatic/ src/dbtools/ => src/ioc/dbtemplate/ src/dev/softDev/ => src/std/dev/ src/dev/testDev/ => src/std/test/ src/excas/ => src/ca/legacy/pcas/ex/ src/gdd/ => src/ca/legacy/gdd/ src/makeBaseApp/ => src/template/base/ src/makeBaseExt/ => src/template/ext/ src/misc/ => src/ioc/misc/ src/rec/ => src/std/rec/ src/registry/ => src/ioc/registry/ src/rsrv/ => src/ioc/rsrv/ src/softIoc/ => src/std/softIoc/ src/toolsComm/ => src/libCom/tools/
26 lines
955 B
C
26 lines
955 B
C
/*************************************************************************\
|
|
* Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne
|
|
* National Laboratory.
|
|
* EPICS BASE is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
\*************************************************************************/
|
|
|
|
#include "epicsFindSymbol.h"
|
|
#include "iocsh.h"
|
|
#include "epicsExport.h"
|
|
|
|
static const iocshArg dlloadArg0 = { "path/library.so", iocshArgString};
|
|
static const iocshArg * const dlloadArgs[] = {&dlloadArg0};
|
|
static const iocshFuncDef dlloadFuncDef = {"dlload", 1, dlloadArgs};
|
|
static void dlloadCallFunc(const iocshArgBuf *args)
|
|
{
|
|
if (!epicsLoadLibrary(args[0].sval)) {
|
|
printf("epicsLoadLibrary failed: %s\n", epicsLoadError());
|
|
}
|
|
}
|
|
|
|
static void dlloadRegistar(void) {
|
|
iocshRegister(&dlloadFuncDef, dlloadCallFunc);
|
|
}
|
|
epicsExportRegistrar(dlloadRegistar);
|