The interface to the AUDITFILE_EMITTER_EXIT entry point is as follows:
The AUDITFILE emitter loads the DLL or shared object named by the AuditfileExit property and invokes the AUDITFILE_EMITTER_EXIT entry point within it whenever an emitter status change occurs.
typedef cobrtncode_t (*PFI_AUDITFILE_EMITTER_EXIT)(cobuns32_t function, cobuns8_t *emitter_name, ...);
0 | AUDITFILE emitter initialising. The exit may change the emitter's properties during its invocation |
1 | AUDITFILE emitter deinitialising. The exit would typically release any resources it has acquired during its previous invocations |
2 | A new audit file is being made active |
3 | The active audit file is now full |
4 | There are no audit files available for outputting events into |
function=0 | no additional parameters |
function=1 | no additional parameters |
function=2 | 1 additional parameter: a null-terminated filename |
function=3 | 1 additional parameter: a null-terminated filename |
function=4 | no additional parameters |
Nothing
Dependent upon the exit function. At present this should always be 0.
Comments:
Please note that the user exit should not be written in COBOL. See Sample file auditfile_exit.c for a sample user exit calling the AUDITFILE emitter.