Introduce the functions RECORD_LAYER_release, RECORD_LAYER_read_pending, and