This PR adds an additional void* to the SAHooks struct and passes it along to the file open/close hooks. It is set to a NULL pointer by default, but enables opening/closing files with additional context, e.g. a filesystem abstraction or thread-local state.
This PR adds an additional
void*
to theSAHooks
struct and passes it along to the file open/close hooks. It is set to aNULL
pointer by default, but enables opening/closing files with additional context, e.g. a filesystem abstraction or thread-local state.