This is Unofficial EPICS BASE Doxygen Site
initHooks.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 /*
10  * Authors: Benjamin Franksen (BESY) and Marty Kraimer
11  * Date: 06-01-91
12  * major Revision: 07JuL97
13  */
14 
15 #ifndef INC_initHooks_H
16 #define INC_initHooks_H
17 
18 #include "libComAPI.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /* This enum must agree with the array of names defined in initHookName() */
25 typedef enum {
26  initHookAtIocBuild = 0, /* Start of iocBuild/iocInit commands */
38  initHookAfterIocBuilt, /* End of iocBuild command */
39 
40  initHookAtIocRun, /* Start of iocRun command */
43  initHookAfterIocRunning, /* End of iocRun/iocInit commands */
44 
45  initHookAtIocPause, /* Start of iocPause command */
48  initHookAfterIocPaused, /* End of iocPause command */
49 
50  initHookAtShutdown, /* Start of iocShutdown commands */
52  initHookAfterStopScan, /* triggered only by unittest code. testIocShutdownOk() */
53  initHookAfterStopCallback, /* triggered only by unittest code. testIocShutdownOk() */
55  initHookBeforeFree, /* triggered only by unittest code. testIocShutdownOk() */
56  initHookAfterShutdown, /* End of iocShutdown commands */
57 
58 /* Deprecated states, provided for backwards compatibility.
59  * These states are announced at the same point they were before,
60  * but will not be repeated if the IOC gets paused and restarted.
61  */
62  initHookAfterInterruptAccept, /* After initHookAfterDatabaseRunning */
63  initHookAtEnd, /* Before initHookAfterIocRunning */
65 
66 typedef void (*initHookFunction)(initHookState state);
67 LIBCOM_API int initHookRegister(initHookFunction func);
68 LIBCOM_API void initHookAnnounce(initHookState state);
69 LIBCOM_API const char *initHookName(int state);
70 LIBCOM_API void initHookFree(void);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* INC_initHooks_H */
LIBCOM_API const char * initHookName(int state)
Definition: initHooks.c:106
LIBCOM_API void initHookFree(void)
Definition: initHooks.c:95
LIBCOM_API int initHookRegister(initHookFunction func)
Definition: initHooks.c:51
LIBCOM_API void initHookAnnounce(initHookState state)
Definition: initHooks.c:76
void(* initHookFunction)(initHookState state)
Definition: initHooks.h:66
initHookState
Definition: initHooks.h:25