X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fparser-utils.c;h=f4a35a752c8a46f28f3da39f809ddf2c7b4ffc0e;hp=47e30d8055040cb28b9b876ff7d88ffa4cb45ac6;hb=a1fb38f17bfa60aac89d0dd21dd8ccc739d794bf;hpb=d7ce19907ff585e7fb6b950a40bd638d49c96a27;ds=sidebyside diff --git a/discover/parser-utils.c b/discover/parser-utils.c index 47e30d8..f4a35a7 100644 --- a/discover/parser-utils.c +++ b/discover/parser-utils.c @@ -4,27 +4,12 @@ #include #include -#include "pb-protocol/pb-protocol.h" +#include "types/types.h" #include "event.h" #include "udev.h" #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) {