| telepathy-glib API Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <telepathy-glib/telepathy-glib.h> GVariantClass tp_variant_type_classify (const GVariantType *type); GVariant * tp_variant_convert (GVariant *variant,const GVariantType *type);
GVariantClass tp_variant_type_classify (const GVariantType *type);
Classifies type according to its top-level type.
|
a GVariantType |
Returns : |
the GVariantClass of type
|
Since 0.19.10
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.
|
a GVariant to convert. [transfer full] |
|
a GVariantType variant must be converted to |
Returns : |
a new GVariant owned by the caller. [transfer full] |
Since 0.19.10