diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-03-11 17:08:57 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-16 12:57:15 +0800 |
commit | 92806cf6bc15f680f75879288df12ea9a87e4608 (patch) | |
tree | 4a6650d8881dda3c6ee321d1e3350edc646c4baf /discover/parser-utils.c | |
parent | 7b396a45d43cc464539cc25799ddda3a27339bd8 (diff) | |
download | talos-petitboot-92806cf6bc15f680f75879288df12ea9a87e4608.tar.gz talos-petitboot-92806cf6bc15f680f75879288df12ea9a87e4608.zip |
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>
Diffstat (limited to 'discover/parser-utils.c')
-rw-r--r-- | discover/parser-utils.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/discover/parser-utils.c b/discover/parser-utils.c index 5792f0a..f4a35a7 100644 --- a/discover/parser-utils.c +++ b/discover/parser-utils.c @@ -10,21 +10,6 @@ #include "device-handler.h" #include "parser-utils.h" -void device_add_boot_option(struct device *device, - struct boot_option *boot_option) -{ - pb_log("%s: %s\n", __func__, device->id); - pb_log(" id '%s'\n", boot_option->id); - pb_log(" name '%s'\n", boot_option->name); - pb_log(" descr '%s'\n", boot_option->description); - pb_log(" icon '%s'\n", boot_option->icon_file); - pb_log(" image '%s'\n", boot_option->boot_image_file); - pb_log(" initrd '%s'\n", boot_option->initrd_file); - pb_log(" args '%s'\n", boot_option->boot_args); - list_add(&device->boot_options, &boot_option->list); - talloc_steal(device, boot_option); -} - const char *generic_icon_file(enum generic_icon_type type) { switch (type) { |