/* solenoidMain.cpp */ /* Author: Marty Kraimer Date: 17MAR2000 */ #include #include #include #include #include #include "epicsExit.h" #include "epicsThread.h" #include "iocsh.h" #include "registryFunction.h" extern "C" { long reboot_init(struct subRecord *psub) ; long reboot_proc(struct subRecord *psub) ; }; int main(int argc,char *argv[]) { registryFunctionAdd( "rebootInit", (REGISTRYFUNCTION)reboot_init ) ; registryFunctionAdd( "rebootProc", (REGISTRYFUNCTION)reboot_proc ) ; if(argc>=2) { iocsh(argv[1]); epicsThreadSleep(.2); } iocsh(NULL); epicsExit(0); return(0); }