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

core: Add runtime ostree_check_version() #735

Closed
wants to merge 1 commit into from

Conversation

cgwalters
Copy link
Member

Previously we added compile-time
checking for versions, but there are use cases for runtime checking as well,
because in a number of API calls we use GVariant as an API extension
mechanism.

[Previously](ostreedev#728) we added compile-time
checking for versions, but there are use cases for runtime checking as well,
because in a number of API calls we use `GVariant` as an API extension
mechanism.
@jlebon
Copy link
Member

jlebon commented Mar 13, 2017

@rh-atomic-bot r+ ae464c3

@GeorgesStavracas
Copy link
Contributor

GeorgesStavracas commented Mar 13, 2017

Not that I'm pretending to be an official OSTree developer, but the commit looks good. Thanks for extending that work, @cgwalters

@rh-atomic-bot
Copy link

⌛ Testing commit ae464c3 with merge 46001f4...

@giuseppe
Copy link
Member

For a moment I thought it would make sense to move the logic we have in the macro into the C function and make the macro use it, but I see the benefits of having two versions one for runtime and one for build time: LGTM.

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing 46001f4 to master...

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.

5 participants