discover: Separate temporary and permanent device data
authorJeremy Kerr <jk@ozlabs.org>
Mon, 11 Mar 2013 09:08:57 +0000 (17:08 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 16 Apr 2013 04:57:15 +0000 (12:57 +0800)
commit92806cf6bc15f680f75879288df12ea9a87e4608
tree4a6650d8881dda3c6ee321d1e3350edc646c4baf
parent7b396a45d43cc464539cc25799ddda3a27339bd8
discover: Separate temporary and permanent device data

At present, we keep both permanent (eg links/n_links) and temporary
(event) data in struct discover_context.

This change makes discover_context a temporary structure, just used
during actual device discovery. Once discovery is complete, the
permanent data (discover_device) is "committed" to the device handler.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/device-handler.h
discover/event-parser.c
discover/grub2-parser.c
discover/kboot-parser.c
discover/parser-conf.c
discover/parser-utils.c
discover/parser.c
discover/parser.h
discover/yaboot-parser.c
test/parser/parser-test.c