Skip to content
  • Thomas Haller's avatar
    core: replace multiple arguments of nm_match_spec_device() with struct · c47d6b17
    Thomas Haller authored
    Struct allow named arguments, which seems easier to maintain instead of
    a function with many arguments. Also, adding a new parameter does not
    require changes to most of the callers.
    
    The real advantage of this is that we encode all the search parameters
    in one argument. And we can add that argument to
    _match_section_infos_lookup(), alongside lookup by NMDevice or
    NMPlatformLink.
    c47d6b17