X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgdbusutils.c;h=4e177491c52b79765f1e3e1bc2faed27b994a2a8;hb=cea9de93c8838099661f5b54462f9c4b6410bfc9;hp=28ac518c056647f1933a670f5d0f71267c24b57d;hpb=078dbda148a81af1b3a76fbda72f089b963087f1;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gdbusutils.c b/gio/gdbusutils.c index 28ac518..4e17749 100644 --- a/gio/gdbusutils.c +++ b/gio/gdbusutils.c @@ -497,82 +497,41 @@ g_dbus_gvariant_to_gvalue (GVariant *value, /** * g_dbus_gvalue_to_gvariant: - * @gvalue: A #GValue to convert to a #GVariant. - * @type: A #GVariantType. + * @gvalue: A #GValue to convert to a #GVariant + * @type: A #GVariantType * - * Converts a #GValue to a #GVariant of the type indicated by the @type parameter. + * Converts a #GValue to a #GVariant of the type indicated by the @type + * parameter. * * The conversion is using the following rules: - * - * #GValue / #GVariant conversion rules - * - * - * - * If the #GType for @gvalue is... - * ... then @type must be - * - * - * - * - * #G_TYPE_STRING - * 's', 'o', 'g' or 'ay' - * - * - * #G_TYPE_STRV - * 'as', 'ao' or 'aay' - * - * - * #G_TYPE_BOOLEAN - * 'b' - * - * - * #G_TYPE_UCHAR - * 'y' - * - * - * #G_TYPE_INT - * 'i' or 'n' - * - * - * #G_TYPE_UINT - * 'u' or 'q' - * - * - * #G_TYPE_INT64 - * 'x' - * - * - * #G_TYPE_UINT64 - * 't' - * - * - * #G_TYPE_DOUBLE - * 'd' - * - * - * #G_TYPE_VARIANT - * Any #GVariantType - * - * - * - *
+ * + * - #G_TYPE_STRING: 's', 'o', 'g' or 'ay' + * - #G_TYPE_STRV: 'as', 'ao' or 'aay' + * - #G_TYPE_BOOLEAN: 'b' + * - #G_TYPE_UCHAR: 'y' + * - #G_TYPE_INT: 'i', 'n' + * - #G_TYPE_UINT: 'u', 'q' + * - #G_TYPE_INT64 'x' + * - #G_TYPE_UINT64: 't' + * - #G_TYPE_DOUBLE: 'd' + * - #G_TYPE_VARIANT: Any #GVariantType + * * This can fail if e.g. @gvalue is of type #G_TYPE_STRING and @type - * is 'i'. It will - * also fail for any #GType (including e.g. #G_TYPE_OBJECT and - * #G_TYPE_BOXED derived-types) not in the table above. + * is ['i'][G-VARIANT-TYPE-INT32:CAPS]. It will also fail for any #GType + * (including e.g. #G_TYPE_OBJECT and #G_TYPE_BOXED derived-types) not + * in the table above. * * Note that if @gvalue is of type #G_TYPE_VARIANT and its value is - * %NULL, the empty #GVariant instance (never - * %NULL) for @type is returned (e.g. 0 for scalar types, the empty - * string for string types, '/' for object path - * types, the empty array for any array type and so on). + * %NULL, the empty #GVariant instance (never %NULL) for @type is + * returned (e.g. 0 for scalar types, the empty string for string types, + * '/' for object path types, the empty array for any array type and so on). * * See the g_dbus_gvariant_to_gvalue() function for how to convert a * #GVariant to a #GValue. * - * Returns: A #GVariant (never floating) of #GVariantType - * @type holding the data from @gvalue or %NULL in case of - * failure. Free with g_variant_unref(). + * Returns: A #GVariant (never floating) of #GVariantType @type holding + * the data from @gvalue or %NULL in case of failure. Free with + * g_variant_unref(). * * Since: 2.30 */