mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 02:16:17 +01:00
Explain magic literals in G_VARIANT_*_INIT
This commit is contained in:
parent
b109c2a210
commit
bc2ca9df20
@ -362,7 +362,14 @@ GQuark g_variant_parse_error_quark (void);
|
|||||||
*
|
*
|
||||||
* Since: 2.50
|
* Since: 2.50
|
||||||
*/
|
*/
|
||||||
#define G_VARIANT_BUILDER_INIT(variant_type) { { { 2942751021u, variant_type, { 0, } } } }
|
#define G_VARIANT_BUILDER_INIT(variant_type) \
|
||||||
|
{ \
|
||||||
|
{ \
|
||||||
|
{ \
|
||||||
|
2942751021u /* == GVSB_MAGIC_PARTIAL, see gvariant.c */, variant_type, { 0, } \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
GVariantBuilder * g_variant_builder_new (const GVariantType *type);
|
GVariantBuilder * g_variant_builder_new (const GVariantType *type);
|
||||||
@ -478,7 +485,14 @@ struct _GVariantDict {
|
|||||||
*
|
*
|
||||||
* Since: 2.50
|
* Since: 2.50
|
||||||
*/
|
*/
|
||||||
#define G_VARIANT_DICT_INIT(asv) { { { asv, 3488698669u, { 0, } } } }
|
#define G_VARIANT_DICT_INIT(asv) \
|
||||||
|
{ \
|
||||||
|
{ \
|
||||||
|
{ \
|
||||||
|
asv, 3488698669u /* == GVSD_MAGIC_PARTIAL, see gvariant.c */, { 0, } \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
GLIB_AVAILABLE_IN_2_40
|
GLIB_AVAILABLE_IN_2_40
|
||||||
GVariantDict * g_variant_dict_new (GVariant *from_asv);
|
GVariantDict * g_variant_dict_new (GVariant *from_asv);
|
||||||
|
Loading…
Reference in New Issue
Block a user