The header page and trailer page user-exit programs
Because the InfoPrint Manager start page and trailer page user-exit programs require the same inputs and produce the same outputs, the program descriptions are similar.
The source code (in the C programming language) for the sample header page user-exit programs and trailer page user-exit programs listed on page What sample user-exit programs are available? are located in the /usr/lpp/psf/exits directory. These sample programs generate an AFP data stream page.
The data structures for the header and trailer page user-exit programs are included with the source code in the /usr/lpp/psf/exits/ainuexit.h file. The code for these structures is shown in User-exit program structures.
The declaration of these exits is:
void HEADER (HEADER_EXITDATA *exitdata) void TRAILER (TRAILER_EXITDATA *exitdata)
The HEADER_EXITDATA
and the TRAILER_EXITDATA
input/output parameters contain all of the input and output data needed to communicate
between InfoPrint Manager and the user-exit programs.
See Common input and output fields and the ainuexit.h file for explanations of the function and structure of the various components of this user-exit.
After you create your header page or trailer page user-exit program, you must use the make command to compile the code (see Compiling and installing the user-exit program).