register setIocLogDisable, callbackSetQueueSize, dbPvdTableSize, scanOnceSetQueueSize, and errlogInit
This commit is contained in:
@@ -25,6 +25,7 @@ INC += dbAccessRegister.h
|
||||
INC += iocshRegisterCommon.h
|
||||
INC += asTestRegister.h
|
||||
INC += envRegister.h
|
||||
INC += iocCoreLimitsRegister.h
|
||||
|
||||
|
||||
# general contents of library on all platforms
|
||||
@@ -46,6 +47,7 @@ LIBSRCS += iocshRegisterCommon.c
|
||||
LIBSRCS += asTestRegister.c
|
||||
LIBSRCS += envRegister.c
|
||||
LIBSRCS += iocUtil.c
|
||||
LIBSRCS += iocCoreLimitsRegister.c
|
||||
|
||||
LIBRARY_IOC = iocsh
|
||||
|
||||
|
||||
77
src/iocsh/iocCoreLimitsRegister.c
Normal file
77
src/iocsh/iocCoreLimitsRegister.c
Normal file
@@ -0,0 +1,77 @@
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* iocCoreLimitsRegister.c */
|
||||
/* Author: Marty Kraimer Date: 12DEC2002 */
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "callback.h"
|
||||
#include "dbStaticLib.h"
|
||||
#include "dbStaticPvt.h"
|
||||
#include "dbScan.h"
|
||||
#include "errlog.h"
|
||||
#define epicsExportSharedSymbols
|
||||
#include "iocsh.h"
|
||||
#include "iocCoreLimitsRegister.h"
|
||||
|
||||
/* callbackSetQueueSize */
|
||||
static const iocshArg callbackSetQueueSizeArg0 = { "bufsize",iocshArgInt};
|
||||
static const iocshArg * const callbackSetQueueSizeArgs[1] =
|
||||
{&callbackSetQueueSizeArg0};
|
||||
static const iocshFuncDef callbackSetQueueSizeFuncDef =
|
||||
{"callbackSetQueueSize",1,callbackSetQueueSizeArgs};
|
||||
static void callbackSetQueueSizeCallFunc(const iocshArgBuf *args)
|
||||
{
|
||||
callbackSetQueueSize(args[0].ival);
|
||||
}
|
||||
|
||||
/* dbPvdTableSize */
|
||||
static const iocshArg dbPvdTableSizeArg0 = { "size",iocshArgInt};
|
||||
static const iocshArg * const dbPvdTableSizeArgs[1] =
|
||||
{&dbPvdTableSizeArg0};
|
||||
static const iocshFuncDef dbPvdTableSizeFuncDef =
|
||||
{"dbPvdTableSize",1,dbPvdTableSizeArgs};
|
||||
static void dbPvdTableSizeCallFunc(const iocshArgBuf *args)
|
||||
{
|
||||
dbPvdTableSize(args[0].ival);
|
||||
}
|
||||
|
||||
/* scanOnceSetQueueSize */
|
||||
static const iocshArg scanOnceSetQueueSizeArg0 = { "size",iocshArgInt};
|
||||
static const iocshArg * const scanOnceSetQueueSizeArgs[1] =
|
||||
{&scanOnceSetQueueSizeArg0};
|
||||
static const iocshFuncDef scanOnceSetQueueSizeFuncDef =
|
||||
{"scanOnceSetQueueSize",1,scanOnceSetQueueSizeArgs};
|
||||
static void scanOnceSetQueueSizeCallFunc(const iocshArgBuf *args)
|
||||
{
|
||||
scanOnceSetQueueSize(args[0].ival);
|
||||
}
|
||||
|
||||
/* errlogInit */
|
||||
static const iocshArg errlogInitArg0 = { "bufsize",iocshArgInt};
|
||||
static const iocshArg * const errlogInitArgs[1] = {&errlogInitArg0};
|
||||
static const iocshFuncDef errlogInitFuncDef =
|
||||
{"errlogInit",1,errlogInitArgs};
|
||||
static void errlogInitCallFunc(const iocshArgBuf *args)
|
||||
{
|
||||
errlogInit(args[0].ival);
|
||||
}
|
||||
|
||||
void epicsShareAPI iocCoreLimitsRegister(void)
|
||||
{
|
||||
iocshRegister(&callbackSetQueueSizeFuncDef,callbackSetQueueSizeCallFunc);
|
||||
iocshRegister(&dbPvdTableSizeFuncDef,dbPvdTableSizeCallFunc);
|
||||
iocshRegister(&scanOnceSetQueueSizeFuncDef,scanOnceSetQueueSizeCallFunc);
|
||||
iocshRegister(&errlogInitFuncDef,errlogInitCallFunc);
|
||||
}
|
||||
28
src/iocsh/iocCoreLimitsRegister.h
Normal file
28
src/iocsh/iocCoreLimitsRegister.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* iocCoreLimitsRegister.h */
|
||||
/* Author: Marty Kraimer Date: 12DEC2002 */
|
||||
|
||||
#ifndef INCiocCoreLimitsRegisterH
|
||||
#define INCiocCoreLimitsRegisterH
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
epicsShareFunc void epicsShareAPI iocCoreLimitsRegister(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*INCiocCoreLimitsRegisterH*/
|
||||
@@ -11,11 +11,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <logClient.h>
|
||||
#include <envDefs.h>
|
||||
|
||||
#include "osiUnistd.h"
|
||||
#include "epicsThread.h"
|
||||
#include "logClient.h"
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "iocsh.h"
|
||||
@@ -143,6 +143,15 @@ static void iocLogInitCallFunc(const iocshArgBuf *args)
|
||||
iocLogInit ();
|
||||
}
|
||||
|
||||
/* iocLogDisable */
|
||||
static const iocshArg iocLogDisableArg0 = {"(0,1)=>(false,true)",iocshArgInt};
|
||||
static const iocshArg * const iocLogDisableArgs[1] = {&iocLogDisableArg0};
|
||||
static const iocshFuncDef iocLogDisableFuncDef = {"setIocLogDisable",1,iocLogDisableArgs};
|
||||
static void iocLogDisableCallFunc(const iocshArgBuf *args)
|
||||
{
|
||||
iocLogDisable = args[0].ival;
|
||||
}
|
||||
|
||||
void epicsShareAPI iocUtilRegister(void)
|
||||
{
|
||||
iocshRegister(&runScriptFuncDef,runScriptCallFunc);
|
||||
@@ -153,4 +162,5 @@ void epicsShareAPI iocUtilRegister(void)
|
||||
iocshRegister(&epicsParamShowFuncDef,epicsParamShowCallFunc);
|
||||
iocshRegister(&epicsEnvShowFuncDef,epicsEnvShowCallFunc);
|
||||
iocshRegister(&iocLogInitFuncDef,iocLogInitCallFunc);
|
||||
iocshRegister(&iocLogDisableFuncDef,iocLogDisableCallFunc);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <ctype.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "iocCoreLimitsRegister.h"
|
||||
#include "dbStaticRegister.h"
|
||||
#include "iocUtilRegister.h"
|
||||
#include "dbTestRegister.h"
|
||||
@@ -32,6 +33,7 @@
|
||||
|
||||
void epicsShareAPI iocshRegisterCommon(void)
|
||||
{
|
||||
iocCoreLimitsRegister();
|
||||
osiRegister();
|
||||
iocUtilRegister();
|
||||
dbStaticRegister();
|
||||
|
||||
Reference in New Issue
Block a user