manpagez: man pages & more
html files: telepathy-glib
Home | html | info | man

GVariant utilities

GVariant utilities — some GVariant utility functions

Synopsis

#include <telepathy-glib/telepathy-glib.h>

GVariantClass       tp_variant_type_classify            (const GVariantType *type);
GVariant *          tp_variant_convert                  (GVariant *variant,
                                                         const GVariantType *type);

Description

GVariant utility functions used in telepathy-glib.

Details

tp_variant_type_classify ()

GVariantClass       tp_variant_type_classify            (const GVariantType *type);

Classifies type according to its top-level type.

type :

a GVariantType

Returns :

the GVariantClass of type

Since 0.19.10


tp_variant_convert ()

GVariant *          tp_variant_convert                  (GVariant *variant,
                                                         const GVariantType *type);

Convert the type of variant to type if possible. This takes ownership of variant. If no conversion is needed, simply return variant. If conversion is not possible, NULL is returned.

variant :

a GVariant to convert. [transfer full]

type :

a GVariantType variant must be converted to

Returns :

a new GVariant owned by the caller. [transfer full]

Since 0.19.10

© manpagez.com 2000-2022
Individual documents may contain additional copyright information.