39 #include "libComAPI.h"
41 #if defined(vxWorks) || defined(__rtems__)
42 #define IOCSH_STATIC_FUNC
44 #define IOCSH_STATIC_FUNC static EPICS_ALWAYS_INLINE
68 iocshArgPersistentString,
164 #define IOCSHFUNCDEF_HAS_USAGE
184 typedef void (*iocshCallFunc)(
const iocshArgBuf *argBuf);
224 const char* name) EPICS_DEPRECATED;
244 LIBCOM_API
void epicsStdCall
iocshFree(
void);
257 LIBCOM_API
int epicsStdCall
iocsh(
const char *pathname);
267 LIBCOM_API
int epicsStdCall
iocshCmd(
const char *cmd);
277 LIBCOM_API
int epicsStdCall
iocshLoad(
const char *pathname,
const char* macros);
287 LIBCOM_API
int epicsStdCall
iocshRun(
const char *cmd,
const char* macros);
308 LIBCOM_API
void epicsStdCall
iocshEnvClear(
const char *name);
311 LIBCOM_API
extern struct dbBase **iocshPpdbbase;
313 #ifdef EPICS_PRIVATE_API
316 extern char** (*iocshCompleteRecord)(
const char *word);
LIBCOM_API void epicsStdCall iocshEnvClear(const char *name)
Unsets macro values.
LIBCOM_API int iocshSetError(int err)
Signal error from an IOC shell function.
LIBCOM_API int epicsStdCall iocsh(const char *pathname)
This function is used to execute IOC shell commands from a file.
LIBCOM_API const iocshCmdDef *epicsStdCall iocshFindCommand(const char *name) EPICS_DEPRECATED
Returns a struct of type iocshCmdDef whose element values are determined by the name parameter...
LIBCOM_API int epicsStdCall iocshCmd(const char *cmd)
This function is used to exectute a single IOC shell command.
Compiler specific declarations.
LIBCOM_API const iocshVarDef *epicsStdCall iocshFindVariable(const char *name)
Returns a struct of type iocshVarDef whose element values are determined by the name parameter...
LIBCOM_API void epicsStdCall iocshRegisterVariable(const iocshVarDef *piocshVarDef)
LIBCOM_API int epicsStdCall iocshLoad(const char *pathname, const char *macros)
Read and evaluate IOC shell commands from the given file. A list of macros can be supplied as a param...
LIBCOM_API void epicsStdCall iocshRegister(const iocshFuncDef *piocshFuncDef, iocshCallFunc func)
This function is used to register a command with the IOC shell.
LIBCOM_API int epicsStdCall iocshRun(const char *cmd, const char *macros)
Evaluate a single IOC shell command. A list of macros can be supplied as a parameter. These macros are treated as environment variables during exectution of the command.
LIBCOM_API void epicsStdCall iocshFree(void)
Frees all memory allocated to registered commands and variables.