The GR_FNCALLBACKEVENT type is used to pass the address of a callback function to nano-X. The nano-X library uses callback functions for passing error information to the application (see GrSetErrorHandler()) and for driving the applications main event processor (see GrMainLoop() or GrServiceSelect()).