core: refactor nm_match_spec_device() to use match-data structure
Instead of passing on invdividual arguments for the match, create a MatchDeviceData structure and pass it on. This reduces the number of arguments and extending it later should be easier. Also, lazily parse the hardware address as needed.
Showing with 77 additions and 75 deletions