Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

Maxxen
Copy link
Contributor

@Maxxen Maxxen commented Dec 3, 2023

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 Maxxen closed this Dec 3, 2023
@Maxxen
Copy link
Contributor Author

Maxxen commented Dec 3, 2023

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

@Maxxen Maxxen reopened this Dec 3, 2023
@rouault rouault merged commit 20e80d8 into OSGeo:master Dec 9, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants