enqueue_*_buffer_rect c functions
c_handle_retry_mem_error, cleanup, rename