mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-14 04:59:00 +03:00
libotutil: Drop accidental use of GLib 2.36 API
Sticking with 2.34 for a while longer.
This commit is contained in:
parent
eaee309112
commit
b35840e1b8
@ -44,7 +44,12 @@ ot_gvariant_new_bytearray (const guchar *data,
|
||||
GVariant *
|
||||
ot_gvariant_new_ay_bytes (GBytes *bytes)
|
||||
{
|
||||
return g_variant_new_from_bytes (G_VARIANT_TYPE ("ay"), bytes, TRUE);
|
||||
gsize size;
|
||||
gconstpointer data;
|
||||
data = g_bytes_get_data (bytes, &size);
|
||||
g_bytes_ref (bytes);
|
||||
return g_variant_new_from_data (G_VARIANT_TYPE ("ay"), data, size,
|
||||
TRUE, (GDestroyNotify)g_bytes_unref, bytes);
|
||||
}
|
||||
|
||||
GHashTable *
|
||||
|
Loading…
x
Reference in New Issue
Block a user