Function

NM-1.0NMutils_parse_variant_attributesSince 1.8

  • Parse attributes from a string.

    Parameters

    • string: string

      the input string

    • attr_separator: number

      the attribute separator character

    • key_value_separator: number

      character separating key and values

    • ignore_unknown: boolean

      whether unknown attributes should be ignored

    • spec: VariantAttributeSpec

      the attribute format specifiers

    Returns GLib.HashTable<string, GLib.Variant<any>>

    a GLib.HashTable mapping attribute names to GLib.Variant values. Warning: the variant are still floating references, owned by the hash table. If you take a reference, ensure to sink the one of the hash table first.

    1.8