mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-10 18:43:42 +01:00
merge GVariant
This commit is contained in:
@@ -269,6 +269,33 @@ g_byte_array_get_type (void)
|
||||
type_id = g_boxed_type_register_static (g_intern_static_string ("GByteArray"),
|
||||
(GBoxedCopyFunc) g_byte_array_ref,
|
||||
(GBoxedFreeFunc) g_byte_array_unref);
|
||||
|
||||
return type_id;
|
||||
}
|
||||
|
||||
GType
|
||||
g_variant_type_get_gtype (void)
|
||||
{
|
||||
static GType type_id = 0;
|
||||
|
||||
if (!type_id)
|
||||
type_id = g_boxed_type_register_static (g_intern_static_string ("GVariantType"),
|
||||
(GBoxedCopyFunc) g_variant_type_copy,
|
||||
(GBoxedFreeFunc) g_variant_type_free);
|
||||
|
||||
return type_id;
|
||||
}
|
||||
|
||||
GType
|
||||
g_variant_get_gtype (void)
|
||||
{
|
||||
static GType type_id = 0;
|
||||
|
||||
if (!type_id)
|
||||
type_id = g_boxed_type_register_static (g_intern_static_string ("GVariant"),
|
||||
(GBoxedCopyFunc) g_variant_ref,
|
||||
(GBoxedFreeFunc) g_variant_unref);
|
||||
|
||||
return type_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user