mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
Add fundamental type and pspec for GVariant
Make G_TYPE_VARIANT a fundamental type instead of boxed, and add g_variant_{set,get,dup}_variant. Add GParamSpecVariant. Bug #610863.
This commit is contained in:
@@ -179,6 +179,17 @@ G_BEGIN_DECLS
|
||||
* The fundamental type for #GObject.
|
||||
*/
|
||||
#define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20)
|
||||
/**
|
||||
* G_TYPE_VARIANT:
|
||||
*
|
||||
* The fundamental type corresponding to #GVariant.
|
||||
*
|
||||
* Note: GLib 2.24 did include a boxed type with this name. It was replaced
|
||||
* with this fundamental type in 2.26.
|
||||
*
|
||||
* Since: 2.26
|
||||
*/
|
||||
#define G_TYPE_VARIANT G_TYPE_MAKE_FUNDAMENTAL (21)
|
||||
|
||||
|
||||
/* Reserved fundamental type numbers to create new fundamental
|
||||
@@ -208,7 +219,7 @@ G_BEGIN_DECLS
|
||||
* First fundamental type number to create a new fundamental type id with
|
||||
* G_TYPE_MAKE_FUNDAMENTAL() reserved for GLib.
|
||||
*/
|
||||
#define G_TYPE_RESERVED_GLIB_FIRST (21)
|
||||
#define G_TYPE_RESERVED_GLIB_FIRST (22)
|
||||
/**
|
||||
* G_TYPE_RESERVED_GLIB_LAST:
|
||||
*
|
||||
|
Reference in New Issue
Block a user