#include <rapi.h>
typedef int rapi_event_rtn_t(
rapi_sid_t Sid, /* Session ID */
rapi_eventinfo_t EventType, /* Event type */
rapi_styleid_t Style, /* Reservation style */
int ErrorCode, /* Error event: code */
int ErrorValue, /* Error event: value */
rapi_addr_t *ErrorNode, /* Node detecting error */
unsigned int ErrorFlags, /* Error flags */
int FilterspecNo, /* number of filterspecs*/
rapi_filter_t *Filterspec_list,
int FlowspecNo, /* number of flowspecs */
rapi_flowspec_t *Flowspec_list,
int AdspecNo, /* number of adspecs */
rapi_adspec_t *Adspec_list,
void *Event_arg /* application argument */
);