Files
epics-base/src/db/initHooks.h
1999-09-13 18:28:08 +00:00

95 lines
2.9 KiB
C
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* share/src/db/initHooks.h*/
/*
* Authors: Benjamin Franksen (BESY) and Marty Kraimer
* Date: 06-01-91
* major Revision: 07JuL97
*
* Experimental Physics and Industrial Control System (EPICS)
*
* Copyright 1991, the Regents of the University of California,
* and the University of Chicago Board of Governors.
*
* This software was produced under U.S. Government contracts:
* (W-7405-ENG-36) at the Los Alamos National Laboratory,
* and (W-31-109-ENG-38) at Argonne National Laboratory.
*
* Initial development by:
* The Controls and Automation Group (AT-8)
* Ground Test Accelerator
* Accelerator Technology Division
* Los Alamos National Laboratory
*
* Co-developed with
* The Controls and Computing Group
* Accelerator Systems Division
* Advanced Photon Source
* Argonne National Laboratory
*
* Modification Log:
* -----------------
* .01 09-05-92 rcz initial version
* .02 09-10-92 rcz changed completely
* .03 07-15-97 mrk Benjamin Franksen allow multiple functions
*
*/
#ifndef INCinitHooksh
#define INCinitHooksh 1
typedef enum {
initHookAtBeginning,
initHookAfterLogInit,
initHookAfterCallbackInit,
initHookAfterCaLinkInit,
initHookAfterInitDrvSup,
initHookAfterInitRecSup,
initHookAfterInitDevSup,
initHookAfterClockInit,
initHookAfterInitDatabase,
initHookAfterFinishDevSup,
initHookAfterScanInit,
initHookAfterInterruptAccept,
initHookAfterInitialProcess,
initHookAtEnd
}initHookState;
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __STDC__
typedef void (*initHookFunction)(initHookState state);
int initHookRegister(initHookFunction func);
void initHooks(initHookState state);
#else /*__STDC__*/
typedef void (*initHookFunction)();
int initHookRegister();
void initHooks();
#endif /*__STDC__*/
#ifdef __cplusplus
}
#endif
/*FOLLOWING IS OBSOLETE*/
/*The following are for compatibility with old initHooks.c functions*/
#define INITHOOKatBeginning initHookAtBeginning
#define INITHOOKafterGetResources initHookAfterGetResources
#define INITHOOKafterLogInit initHookAfterLogInit
#define INITHOOKafterCallbackInit initHookAfterCallbackInit
#define INITHOOKafterCaLinkInit initHookAfterCaLinkInit
#define INITHOOKafterInitDrvSup initHookAfterInitDrvSup
#define INITHOOKafterInitRecSup initHookAfterInitRecSup
#define INITHOOKafterInitDevSup initHookAfterInitDevSup
#define INITHOOKafterTS_init initHookAfterTS_init
#define INITHOOKafterInitDatabase initHookAfterInitDatabase
#define INITHOOKafterFinishDevSup initHookAfterFinishDevSup
#define INITHOOKafterScanInit initHookAfterScanInit
#define INITHOOKafterInterruptAccept initHookAfterInterruptAccept
#define INITHOOKafterInitialProcess initHookAfterInitialProcess
#define INITHOOKatEnd initHookAtEnd
/*END OF OBSOLETE DEFINITIONS*/
#endif /*INCinitHooksh*/