Register a callback that will be fired once the execution loop is exited, but before glview is destroyed.
#include <glview/glview.h>
GLVIEW_API int glview_register_finalize_callback(finalize_callback finalize_callback)
The function to call immediately after exiting the event loop. If finalize_callback is NULL, any previously registered callback will be disabled and no function will be called.
GLVIEW_SUCCESS