Add struct sr_context to the sr_init() and sr_exit() calls