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

glib/variant: add some more safe wrappers #632

Merged
merged 1 commit into from Apr 7, 2022

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Apr 7, 2022

This adds manual wrappers for the following functions:

  • g_variant_is_normal_form
  • g_variant_is_object_path
  • g_variant_is_signature

It completes wrapping all the existing g_variant_is_* methods,
except for g_variant_is_floating which is not useful in Rust.

Closes: #622

glib/src/variant.rs Outdated Show resolved Hide resolved
This adds manual wrappers for the following functions:
 - `g_variant_is_normal_form`
 - `g_variant_is_object_path`
 - `g_variant_is_signature`

It completes wrapping all the existing `g_variant_is_*` methods,
except for `g_variant_is_floating` which is not useful in Rust.
@lucab
Copy link
Contributor Author

lucab commented Apr 7, 2022

Amended according to review suggestions, CI is green.

@sdroege sdroege merged commit bee1488 into gtk-rs:master Apr 7, 2022
@lucab lucab deleted the ups/gvariant-is branch April 7, 2022 09:57
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.

[FEATURE REQUEST] Add Variant::is_object_path()
3 participants