This is Unofficial EPICS BASE Doxygen Site
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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 */
27
initHookAtBeginning
,
28
initHookAfterCallbackInit
,
29
initHookAfterCaLinkInit
,
30
initHookAfterInitDrvSup
,
31
initHookAfterInitRecSup
,
32
initHookAfterInitDevSup
,
33
initHookAfterInitDatabase
,
34
initHookAfterFinishDevSup
,
35
initHookAfterScanInit
,
36
initHookAfterInitialProcess
,
37
initHookAfterCaServerInit
,
38
initHookAfterIocBuilt
,
/* End of iocBuild command */
39
40
initHookAtIocRun
,
/* Start of iocRun command */
41
initHookAfterDatabaseRunning
,
42
initHookAfterCaServerRunning
,
43
initHookAfterIocRunning
,
/* End of iocRun/iocInit commands */
44
45
initHookAtIocPause
,
/* Start of iocPause command */
46
initHookAfterCaServerPaused
,
47
initHookAfterDatabasePaused
,
48
initHookAfterIocPaused
,
/* End of iocPause command */
49
50
initHookAtShutdown
,
/* Start of iocShutdown commands */
51
initHookAfterCloseLinks
,
52
initHookAfterStopScan
,
/* triggered only by unittest code. testIocShutdownOk() */
53
initHookAfterStopCallback
,
/* triggered only by unittest code. testIocShutdownOk() */
54
initHookAfterStopLinks
,
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 */
64
}
initHookState
;
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 */
initHookName
LIBCOM_API const char * initHookName(int state)
Definition:
initHooks.c:106
initHookBeforeFree
Definition:
initHooks.h:55
initHookAfterCaServerPaused
Definition:
initHooks.h:46
initHookAfterCallbackInit
Definition:
initHooks.h:28
initHookFree
LIBCOM_API void initHookFree(void)
Definition:
initHooks.c:95
initHookAfterInitialProcess
Definition:
initHooks.h:36
initHookAfterStopLinks
Definition:
initHooks.h:54
initHookAfterCloseLinks
Definition:
initHooks.h:51
initHookAfterDatabaseRunning
Definition:
initHooks.h:41
initHookAfterCaLinkInit
Definition:
initHooks.h:29
initHookRegister
LIBCOM_API int initHookRegister(initHookFunction func)
Definition:
initHooks.c:51
initHookAtIocPause
Definition:
initHooks.h:45
initHookAfterInitDrvSup
Definition:
initHooks.h:30
initHookAfterCaServerInit
Definition:
initHooks.h:37
initHookAnnounce
LIBCOM_API void initHookAnnounce(initHookState state)
Definition:
initHooks.c:76
initHookAfterDatabasePaused
Definition:
initHooks.h:47
initHookAfterFinishDevSup
Definition:
initHooks.h:34
initHookAfterIocPaused
Definition:
initHooks.h:48
initHookAfterIocRunning
Definition:
initHooks.h:43
initHookAfterInitDevSup
Definition:
initHooks.h:32
initHookAtBeginning
Definition:
initHooks.h:27
initHookAtShutdown
Definition:
initHooks.h:50
initHookAfterScanInit
Definition:
initHooks.h:35
initHookAfterCaServerRunning
Definition:
initHooks.h:42
initHookAtIocRun
Definition:
initHooks.h:40
initHookFunction
void(* initHookFunction)(initHookState state)
Definition:
initHooks.h:66
initHookAfterIocBuilt
Definition:
initHooks.h:38
initHookAfterStopCallback
Definition:
initHooks.h:53
initHookAfterInitRecSup
Definition:
initHooks.h:31
initHookState
initHookState
Definition:
initHooks.h:25
initHookAfterInitDatabase
Definition:
initHooks.h:33
initHookAtEnd
Definition:
initHooks.h:63
initHookAfterInterruptAccept
Definition:
initHooks.h:62
initHookAtIocBuild
Definition:
initHooks.h:26
initHookAfterStopScan
Definition:
initHooks.h:52
initHookAfterShutdown
Definition:
initHooks.h:56
modules
libcom
src
iocsh
initHooks.h
Generated by
1.8.11