Event Table Processing

  #include <vv_sys.h>
   
ETPTR et_def (int size, EVENTFP default_fp)

Allocates and initializes an event table and sets the default event function

int et_delfp (EVENTFP event_fp, ETPTR etp)

Deletes all entries in an event table that call the given event function

void et_free (ETPTR etp)

Frees the memory allocated for the event table

EVENTFP et_getfp (USHORT eventcode, ETPTR etp)

Returns a pointer to the event function associated with the event code

int et_proc (EVENTPTR eventp, ETPTR etp, PTR userp)

Searches the event table for the specified event and calls its corresponding function

EVENTFP et_rplevnt (USHORT eventcode, EVENTFP event_fp, ETPTR etp)

Adds, replaces, or deletes an entry in an event table



Home Contents Previous Next