Example customer event processing user exit

The following code is a stub example of an exit written in C that can be specified via the EVENTPROCESSINGEXIT option, named as IPVEPXIT.

#pragma linkage(IPVEPXIT, fetchable)

#include <string.h>

int IPVEPXIT(char *ProdID, char *BufPtr) { 

  if (!BufPtr) { 
    printf("BufPtr is null! Exiting...\n");                             
    return;                                                      
  } 
  
  if (strcmp(ProdID, "IDI")) {                                   
                                                                 
    //Event from Fault Analyzer has been detected.               
    //processFAEvent(BufPtr);  ...   

  } else if (strcmp(ProdID, "FMN")) {                            
                                                                 
    //Event from File Manager has been detected.                 
    //processFMEvent(BufPtr);  ...   

  } else if (strcmp(ProdID, "ABC")) {                            
                                                                 
    //Event from application ABC has been detected.              
    //processABCEvent(BufPtr); ...             
                                                                 
  }                                                             
}