diff options
author | Colin Walters <walters@verbum.org> | 2013-08-14 18:20:02 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-08-14 19:23:33 -0400 |
commit | 76cd7ae4ea876aa08bd8a85eb6cfdd4e31fbdd32 (patch) | |
tree | 382f8a614fa131bf93c601157dbccb5f94245315 /src/libotutil/ot-variant-utils.h | |
parent | 71f6f10cd282118b41516260dedce9b550e257b3 (diff) | |
download | ostree-76cd7ae4ea876aa08bd8a85eb6cfdd4e31fbdd32.tar.gz |
libotutil: Add API to create an "ay" GVariant from GBytes
We used to have a version of this, but since I'm trying to use
GBytes more, this became a more common operation, and it's annoying
to type out the whole G_VARIANT_TYPE ("ay") each time, and pass
TRUE for trusted.
https://bugzilla.gnome.org/show_bug.cgi?id=706031
Diffstat (limited to 'src/libotutil/ot-variant-utils.h')
-rw-r--r-- | src/libotutil/ot-variant-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libotutil/ot-variant-utils.h b/src/libotutil/ot-variant-utils.h index e8f8f5ff..83a3f540 100644 --- a/src/libotutil/ot-variant-utils.h +++ b/src/libotutil/ot-variant-utils.h @@ -29,6 +29,8 @@ G_BEGIN_DECLS GVariant *ot_gvariant_new_bytearray (const guchar *data, gsize len); +GVariant *ot_gvariant_new_ay_bytes (GBytes *bytes); + GHashTable *ot_util_variant_asv_to_hash_table (GVariant *variant); GVariant * ot_util_variant_take_ref (GVariant *variant); |