EPICS Base  7.0.7.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 * SPDX-License-Identifier: EPICS
7 * EPICS BASE is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
50 #ifndef INC_initHooks_H
51 #define INC_initHooks_H
52 
53 #include "libComAPI.h"
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
71 typedef enum {
104  /* Deprecated states: */
107 } initHookState;
108 
114 typedef void (*initHookFunction)(initHookState state);
115 
122 LIBCOM_API int initHookRegister(initHookFunction func);
123 
129 LIBCOM_API void initHookAnnounce(initHookState state);
130 
137 LIBCOM_API const char *initHookName(int state);
138 
143 LIBCOM_API void initHookFree(void);
144 
145 #ifdef __cplusplus
146 }
147 #endif
148 
149 #endif /* INC_initHooks_H */
LIBCOM_API void initHookAnnounce(initHookState state)
Routine called by iocInit() to trigger notifications.
LIBCOM_API int initHookRegister(initHookFunction func)
Register a function for initHook notifications.
void(* initHookFunction)(initHookState state)
Type for application callback functions.
Definition: initHooks.h:114
LIBCOM_API const char * initHookName(int state)
Returns printable representation of state.
initHookState
Initialization stages.
Definition: initHooks.h:71
LIBCOM_API void initHookFree(void)
Forget all registered application functions.