Skip to content
  • Beniamino Galvani's avatar
    libnm-core: add attribute parsing/format helpers · 93b3a478
    Beniamino Galvani authored
    Various libnm objects (addresses, routes) carry an hash table of
    attributes represented as GVariants indexed by name. Add common
    routines to convert to and from a string representation.
    
    To parse a string, a knowledge of the supported attributes (and their
    types) is needed: we represent it as an opaque type
    NMVariantAttributeSpec that callers must query to the library for the
    specific object type and pass to the parse function.
    93b3a478