OSGeo / shapelib

Official repository of shapelib
Other
141 stars 66 forks source link

add userdata ptr to SAHooks, available during file open/removal #77

Closed Maxxen closed 11 months ago

Maxxen commented 1 year ago

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.

Maxxen commented 1 year ago

Whoops, sorry, thought I PR'd to my fork. Well, might as well run it here then.