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 *
|
GVariant *
|
||||||
ot_gvariant_new_ay_bytes (GBytes *bytes)
|
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 *
|
GHashTable *
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue