core: Only depend on GLib 2.30
This commit is contained in:
1 parent
047602c56f
commit
b971ce0dfa
5 files changed
+19
-6
No files matched your search
@@ -28,6 +28,19 @@
|
||||
|
||||
#include "otutil.h"
|
||||
|
||||
GVariant *
|
||||
ot_gvariant_new_bytearray (const guchar *data,
|
||||
gsize len)
|
||||
{
|
||||
gpointer data_copy;
|
||||
GVariant *ret;
|
||||
|
||||
data_copy = g_memdup (data, len);
|
||||
ret = g_variant_new_from_data (G_VARIANT_TYPE ("ay"), data_copy,
|
||||
len, FALSE, g_free, data_copy);
|
||||
return ret;
|
||||
}
|
||||
|
||||
GHashTable *
|
||||
ot_util_variant_asv_to_hash_table (GVariant *variant)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user