add epicsPrtEnvParams

This commit is contained in:
Marty Kraimer
2000-05-19 14:32:28 +00:00
parent adff30bf2e
commit e4d9ceb26c
5 changed files with 56 additions and 1 deletions

View File

@@ -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
View 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
View 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*/

View File

@@ -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();

View File

@@ -479,7 +479,7 @@ char *value /* I pointer to value string */
* epicsPrtEnvParams();
*
*-*/
long
long epicsShareAPI
epicsPrtEnvParams()
{
const ENV_PARAM **ppParam = env_param_list;