]> git.ozlabs.org Git - petitboot/blobdiff - discover/parser-utils.h
Hook up parsers to device discovery
[petitboot] / discover / parser-utils.h
diff --git a/discover/parser-utils.h b/discover/parser-utils.h
new file mode 100644 (file)
index 0000000..e82e3f9
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef PARSER_UTILS_H
+#define PARSER_UTILS_H
+
+#include "parser.h"
+
+#define streq(a,b) (!strcasecmp((a),(b)))
+
+#define artwork_pathname(file) (PKG_SHARE_DIR "/artwork/" file)
+
+void device_add_boot_option(struct device *device,
+               struct boot_option *boot_option);
+
+const char *generic_icon_file(enum generic_icon_type type);
+
+enum generic_icon_type guess_device_type(struct discover_context *ctx);
+
+#endif /* PARSER_UTILS_H */