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 Modulemd.ModuleIndex.dump_to_custom() #268

Merged
merged 1 commit into from Apr 11, 2019

Conversation

sgallagher
Copy link
Collaborator

In order to support YAML streams from arbitrary sources (such as those
being written to a compressed file through an intermediate library), we
need to support writing through a custom function. This patch enables
consumers of libmodulemd to have indirect access to libyaml's
yaml_parser_set_output() to accomplish this.

Adds a basic test to read through a long string and verify that it
produced an index with the read module.

Related: #208

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

In order to support YAML streams from arbitrary sources (such as those
being written to a compressed file through an intermediate library), we
need to support writing through a custom function. This patch enables
consumers of libmodulemd to have indirect access to libyaml's
yaml_parser_set_output() to accomplish this.

Adds a basic test to read through a long string and verify that it
produced an index with the read module.

Related: fedora-modularity#208

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
@sgallagher sgallagher merged commit 3440075 into fedora-modularity:master Apr 11, 2019
@sgallagher sgallagher deleted the custom-write branch April 29, 2019 12:06
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.

None yet

1 participant