add epicsPrtEnvParams
This commit is contained in:
@@ -15,6 +15,7 @@ INC += caTestRegister.h
|
||||
INC += dbAccessRegister.h
|
||||
INC += ioccrfRegister.h
|
||||
INC += asTestRegister.h
|
||||
INC += envRegister.h
|
||||
INC += registerRecordDeviceDriverRegister.h
|
||||
|
||||
|
||||
@@ -35,6 +36,7 @@ LIBSRCS += caTestRegister.c
|
||||
LIBSRCS += dbAccessRegister.c
|
||||
LIBSRCS += ioccrfRegister.c
|
||||
LIBSRCS += asTestRegister.c
|
||||
LIBSRCS += envRegister.c
|
||||
LIBSRCS += iocUtil.c
|
||||
|
||||
LIBRARY_IOC = iocsh
|
||||
|
||||
27
src/iocsh/envRegister.c
Normal file
27
src/iocsh/envRegister.c
Normal file
@@ -0,0 +1,27 @@
|
||||
/* envRegister.c */
|
||||
/* Author: Marty Kraimer Date: 19MAY2000 */
|
||||
|
||||
/********************COPYRIGHT NOTIFICATION**********************************
|
||||
This software was developed under a United States Government license
|
||||
described on the COPYRIGHT_UniversityOfChicago file included as part
|
||||
of this distribution.
|
||||
****************************************************************************/
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "envDefs.h"
|
||||
#define epicsExportSharedSymbols
|
||||
#include "ioccrf.h"
|
||||
#include "envRegister.h"
|
||||
|
||||
/* epicsPrtEnvParams */
|
||||
static ioccrfFuncDef epicsPrtEnvParamsFuncDef = {"epicsPrtEnvParams",0,0};
|
||||
static void epicsPrtEnvParamsCallFunc(ioccrfArg **args) { epicsPrtEnvParams();}
|
||||
|
||||
void epicsShareAPI envRegister(void)
|
||||
{
|
||||
ioccrfRegister(&epicsPrtEnvParamsFuncDef,epicsPrtEnvParamsCallFunc);
|
||||
}
|
||||
25
src/iocsh/envRegister.h
Normal file
25
src/iocsh/envRegister.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* envRegister.h */
|
||||
/* Author: Marty Kraimer Date: 19MAY2000 */
|
||||
|
||||
/********************COPYRIGHT NOTIFICATION**********************************
|
||||
This software was developed under a United States Government license
|
||||
described on the COPYRIGHT_UniversityOfChicago file included as part
|
||||
of this distribution.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef INCenvRegisterH
|
||||
#define INCenvRegisterH
|
||||
|
||||
#include "shareLib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
epicsShareFunc void epicsShareAPI envRegister(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*INCenvRegisterH*/
|
||||
1
src/libCom/env/envDefs.h
vendored
1
src/libCom/env/envDefs.h
vendored
@@ -123,6 +123,7 @@ epicsShareFunc const char * epicsShareAPI
|
||||
envGetConfigParamPtr(const ENV_PARAM *pParam);
|
||||
epicsShareFunc unsigned short epicsShareAPI envGetInetPortConfigParam
|
||||
(const ENV_PARAM *pEnv, unsigned short defaultPort);
|
||||
epicsShareFunc long epicsShareAPI epicsPrtEnvParams(void);
|
||||
#else
|
||||
epicsShareFunc char * epicsShareAPI envGetConfigParam();
|
||||
epicsShareFunc char * epicsShareAPI envGetConfigParamPtr();
|
||||
|
||||
2
src/libCom/env/envSubr.c
vendored
2
src/libCom/env/envSubr.c
vendored
@@ -479,7 +479,7 @@ char *value /* I pointer to value string */
|
||||
* epicsPrtEnvParams();
|
||||
*
|
||||
*-*/
|
||||
long
|
||||
long epicsShareAPI
|
||||
epicsPrtEnvParams()
|
||||
{
|
||||
const ENV_PARAM **ppParam = env_param_list;
|
||||
|
||||
Reference in New Issue
Block a user