This is Unofficial EPICS BASE Doxygen Site
rsrvIocRegister.c
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2007 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 #include "osiSock.h"
11 #include "iocsh.h"
12 
13 #define epicsExportSharedSymbols
14 #include "rsrv.h"
15 #include "server.h"
16 #include "epicsExport.h"
17 
18 
19 /* casr */
20 static const iocshArg casrArg0 = { "level",iocshArgInt};
21 static const iocshArg * const casrArgs[1] = {&casrArg0};
22 static const iocshFuncDef casrFuncDef = {"casr",1,casrArgs};
23 static void casrCallFunc(const iocshArgBuf *args)
24 {
25  casr(args[0].ival);
26 }
27 
28 static
29 void rsrvRegistrar(void)
30 {
32  iocshRegister(&casrFuncDef,casrCallFunc);
33 }
34 
36 epicsExportRegistrar(rsrvRegistrar);
GLBLTYPE int CASDEBUG
Definition: server.h:190
void epicsStdCall iocshRegister(const iocshFuncDef *piocshFuncDef, iocshCallFunc func)
Definition: iocsh.cpp:111
void casr(unsigned level)
Definition: caservertask.c:897
epicsExportAddress(int, CASDEBUG)
void rsrv_register_server(void)
epicsExportRegistrar(rsrvRegistrar)
Definition: iocsh.h:56
Exporting IOC objects.