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 a public shared library, with "rpm -qa" for commit functionality #124

Closed
wants to merge 2 commits into from

Conversation

cgwalters
Copy link
Member

This will help build release engineering and other types of tools;
for example, rather than parsing the output of db diff, one
should be able to call an API.

Initially, this adds the generic infrastructure for a public shared
library, with a new function call to do the equivalent of rpm -qa on
a particular OSTree commit.

Closes: #117

@cgwalters
Copy link
Member Author

Continuation of #123

This will help build release engineering and other types of tools;
for example, rather than parsing the output of `db diff`, one
should be able to call an API.

Initially, this adds the generic infrastructure for a public shared
library, with a new function call to do the equivalent of `rpm -qa` on
a particular OSTree commit.

Closes: coreos#117
@cgwalters
Copy link
Member Author

Rebased on master, added a commit to add gtk-doc.

@mbarnes
Copy link
Contributor

mbarnes commented Apr 13, 2015

Looks good to me and builds successfully here.

One very minor quibble -- and this might just be personal preference -- is for rpm_ostree_db_query() it seems to me more straightforward to just return the RpmOstreeDbQueryResult directly (or NULL on error). Returning a gboolean is redundant. I wouldn't mention it but for the fact that it's becoming permanent API.

cgwalters added a commit that referenced this pull request Apr 13, 2015
This will help build release engineering and other types of tools;
for example, rather than parsing the output of `db diff`, one
should be able to call an API.

Initially, this adds the generic infrastructure for a public shared
library, with a new function call to do the equivalent of `rpm -qa` on
a particular OSTree commit.

Closes: #117
Closes: #124
@cgwalters
Copy link
Member Author

I tend to write all APIs like it came out of a code generator by default, I admit. But there's certainly nothing wrong with the "return directly" for structures. I changed the code and merged, thanks!

@cgwalters cgwalters closed this Apr 13, 2015
@cgwalters cgwalters deleted the librpmostree branch April 13, 2015 19:12
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.

Introspectable shared library
2 participants