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

Implement a handler for file header #48

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

rafal-c
Copy link
Contributor

@rafal-c rafal-c commented Oct 2, 2023

This allows clients to learn the file version, compression, writer version, etc. Before, this information was impossible to extract from the library.

This is really useful to inform end users ahead of time whether given file is supported or not, and if not - why (for example because lack of support for ASCII mode or version 1 files in librdata).

The change is backwards compatible because the newly added handler header_handler is optional and in older code it will simply not be called.

… file version, compression, writer version, etc. Before, this information was impossible to extract from the library.
@rafal-c
Copy link
Contributor Author

rafal-c commented Oct 3, 2023

Looks like the AppVeyor build is broken but it seems unrelated to my changes. I would appreciate if a maintainer could take a look.

@evanmiller
Copy link
Collaborator

Looks good, thanks!

@evanmiller evanmiller merged commit 33bd276 into WizardMac:master Oct 3, 2023
4 of 6 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