This is Unofficial EPICS BASE Doxygen Site
iocshRegisterCommon.h File Reference
#include "shareLib.h"
+ Include dependency graph for iocshRegisterCommon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

epicsShareFunc void iocshRegisterCommon (void)
 

Function Documentation

epicsShareFunc void iocshRegisterCommon ( void  )

Definition at line 28 of file iocshRegisterCommon.c.

29 {
30  const char *targetArch = envGetConfigParamPtr(&EPICS_BUILD_TARGET_ARCH);
31  iocshPpdbbase = &pdbbase;
32 
33  /* This uses a config param so the user can override it */
34  if (targetArch) {
35  epicsEnvSet("ARCH", targetArch);
36  }
37 
38  /* Base build version variables */
39  epicsEnvSet("EPICS_VERSION_MAJOR", str(EPICS_VERSION));
40  epicsEnvSet("EPICS_VERSION_MIDDLE", str(EPICS_REVISION));
41  epicsEnvSet("EPICS_VERSION_MINOR", str(EPICS_MODIFICATION));
42  epicsEnvSet("EPICS_VERSION_PATCH", str(EPICS_PATCH_LEVEL));
43  epicsEnvSet("EPICS_VERSION_SNAPSHOT", EPICS_DEV_SNAPSHOT);
44  epicsEnvSet("EPICS_VERSION_SITE", EPICS_SITE_VERSION);
45  epicsEnvSet("EPICS_VERSION_SHORT", EPICS_VERSION_SHORT);
46  epicsEnvSet("EPICS_VERSION_FULL", EPICS_VERSION_FULL);
47 
50  dbIocRegister();
52  asIocRegister();
55 }
LIBCOM_API const ENV_PARAM EPICS_BUILD_TARGET_ARCH
LIBCOM_API const char *epicsStdCall envGetConfigParamPtr(const ENV_PARAM *pParam)
Get a configuration parameter's value or default string.
Definition: envSubr.c:81
void asIocRegister(void)
#define str(v)
LIBCOM_API void epicsStdCall epicsEnvSet(const char *name, const char *value)
Set an environment variable's value.
Definition: osdEnv.c:35
struct dbBase ** iocshPpdbbase
Definition: iocsh.cpp:41
void registryIocRegister(void)
void dbtoolsIocRegister(void)
void miscIocRegister(void)
void dbStaticIocRegister(void)
void epicsStdCall libComRegister(void)