9 void pb_log(const char *fmt, ...)
14 fprintf(stderr, fmt, ap);
19 int mount_device(const char *dev_path, char *mount_path)
21 pb_log("attempt to mount device (%s) not supported\n", dev_path);
25 int add_device(const struct device *dev)
27 printf("device added:\n");
28 printf("\tid: %s\n", dev->id);
29 printf("\tname: %s\n", dev->name);
30 printf("\tdescription: %s\n", dev->description);
31 printf("\tboot_image: %s\n", dev->icon_file);
35 int add_boot_option(const struct boot_option *opt)
37 printf("option added:\n");
38 printf("\tname: %s\n", opt->name);
39 printf("\tdescription: %s\n", opt->description);
40 printf("\tboot_image: %s\n", opt->boot_image_file);
41 printf("\tinitrd: %s\n", opt->initrd_file);
42 printf("\tboot_args: %s\n", opt->boot_args);
46 enum generic_icon_type guess_device_type(void)
48 return ICON_TYPE_UNKNOWN;
51 int main(int argc, char **argv)
53 const char *dev = "/dev/null";
56 fprintf(stderr, "usage: %s <fake-mountpoint>\n", argv[0]);
60 iterate_parsers(dev, argv[1]);