discover: Consolidate user events by device ID
authorJeremy Kerr <jk@ozlabs.org>
Mon, 11 Mar 2013 06:07:36 +0000 (14:07 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 16 Apr 2013 03:41:46 +0000 (11:41 +0800)
commit12a5c9153ce95ddde7fb14eaba9d779933a3637c
tree0919a8d387e617c01b4a462d7cd9fe0cedbc709c
parentbd06734362bb727b09b943688d9b69aa0a84590d
discover: Consolidate user events by device ID

Currently, we assume all user events are for a new device. This means
that we can never add boot options to an existing device.

This change tries to find an existing (matching by ID) device before
creating a new one in the user event add path.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/event-parser.c
discover/parser.h
ui/test/discover-test.c